Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from model import models
|
@@ -5,11 +6,6 @@ from multit2i import (load_models, infer_fn, infer_rand_fn, save_gallery,
|
|
5 |
change_model, warm_model, get_model_info_md, loaded_models,
|
6 |
get_positive_prefix, get_positive_suffix, get_negative_prefix, get_negative_suffix,
|
7 |
get_recom_prompt_type, set_recom_prompt_preset, get_tag_type, randomize_seed, translate_to_en)
|
8 |
-
from externalmod import gr_Interface_load
|
9 |
-
import asyncio
|
10 |
-
from threading import RLock
|
11 |
-
lock = RLock()
|
12 |
-
HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
|
13 |
|
14 |
max_images = 8
|
15 |
MAX_SEED = 2**32-1
|
|
|
1 |
+
import huggingface_hub
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
from model import models
|
|
|
6 |
change_model, warm_model, get_model_info_md, loaded_models,
|
7 |
get_positive_prefix, get_positive_suffix, get_negative_prefix, get_negative_suffix,
|
8 |
get_recom_prompt_type, set_recom_prompt_preset, get_tag_type, randomize_seed, translate_to_en)
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
max_images = 8
|
11 |
MAX_SEED = 2**32-1
|