This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "7f5e0c56-93b4-4937-b7f2-efd0f1853e33", | |
| "revision": 0, | |
| "last_node_id": 153, | |
| "last_link_id": 367, | |
| "nodes": [ | |
| { | |
| "id": 96, | |
| "type": "MarkdownNote", | |
| "pos": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pygame | |
| import math | |
| import sys | |
| # Initialize Pygame | |
| pygame.init() | |
| # Screen settings | |
| SCREEN_WIDTH = 800 | |
| SCREEN_HEIGHT = 600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "e552c45b-43a1-48f6-bc85-97bd65091a71", | |
| "revision": 0, | |
| "last_node_id": 353, | |
| "last_link_id": 627, | |
| "nodes": [ | |
| { | |
| "id": 138, | |
| "type": "KSamplerSelect", | |
| "pos": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "92112d97-bb64-4b44-86f2-ea5691ef8f6e", | |
| "revision": 0, | |
| "last_node_id": 28, | |
| "last_link_id": 52, | |
| "nodes": [ | |
| { | |
| "id": 15, | |
| "type": "Note", | |
| "pos": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "last_node_id": 39, | |
| "last_link_id": 124, | |
| "nodes": [ | |
| { | |
| "id": 8, | |
| "type": "VAEDecode", | |
| "pos": { | |
| "0": 866, | |
| "1": 367 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import numpy as np | |
| import random | |
| import os | |
| from diffusers.utils import load_image | |
| from diffusers import DDIMScheduler | |
| from huggingface_hub import hf_hub_download | |
| import spaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update && apt-get install git-lfs -y | |
| while getopts ":f:" option; do | |
| case $option in | |
| f) | |
| url="$OPTARG" | |
| git-lfs clone $url | |
| cd ${url##*/} | |
| pip install -U gradio transformers | |
| pip install -r requirements.txt | |
| sed -i 's/.launch()/.launch(share=True)/' app.py |