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 math | |
import modules.scripts as scripts | |
import gradio as gr | |
from PIL import Image | |
from modules import processing, shared, sd_samplers, images, devices | |
from modules.processing import Processed | |
from modules.shared import opts, cmd_opts, state |
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 base64 | |
import json | |
import logging | |
import time | |
from io import BytesIO | |
import gradio as gr | |
import modules.scripts as scripts | |
import modules.sd_samplers as samplers | |
import modules.shared as shared |
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 wget, os, sys, signal | |
from huggingface_hub.hf_api import HfApi | |
download_dir = "embeddings" | |
token_delimiter = "" | |
total = 0 | |
failed = 0 | |
skipped = 0 | |
downloaded = 0 |