Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from huggingface_hub import AsyncInferenceClient
|
|
6 |
from translatepy import Translator
|
7 |
from gradio_client import Client, handle_file
|
8 |
from PIL import Image
|
|
|
9 |
from loras import loras
|
10 |
from huggingface_hub import login
|
11 |
from themes import IndonesiaTheme # Import custom IndonesiaTheme
|
@@ -13,13 +14,13 @@ from lorify import Lorify
|
|
13 |
from css import css2
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
|
16 |
-
HF_TOKEN = os.getenv('HF_TOKEN')
|
17 |
|
|
|
|
|
18 |
|
19 |
-
HF_TOKEN = os.getenv('HF_TOKEN_UPSCALER')
|
20 |
-
HF_TOKEN_UPSCALER = os.getenv('HF_TOKEN_UPSCALER')
|
21 |
qwen_client = Client("K00B404/HugChatWrap",hf_token=HF_TOKEN)
|
22 |
loaded_loras=[]
|
|
|
23 |
for lora in loras:
|
24 |
print(lora.get('repo'))
|
25 |
loaded_loras.append(lora.get('repo'))
|
|
|
6 |
from translatepy import Translator
|
7 |
from gradio_client import Client, handle_file
|
8 |
from PIL import Image
|
9 |
+
from save_loras import s
|
10 |
from loras import loras
|
11 |
from huggingface_hub import login
|
12 |
from themes import IndonesiaTheme # Import custom IndonesiaTheme
|
|
|
14 |
from css import css2
|
15 |
MAX_SEED = np.iinfo(np.int32).max
|
16 |
|
|
|
17 |
|
18 |
+
HF_TOKEN = os.getenv('HF_TOKEN')
|
19 |
+
HF_TOKEN_UPSCALER = os.getenv('HF_TOKEN')
|
20 |
|
|
|
|
|
21 |
qwen_client = Client("K00B404/HugChatWrap",hf_token=HF_TOKEN)
|
22 |
loaded_loras=[]
|
23 |
+
|
24 |
for lora in loras:
|
25 |
print(lora.get('repo'))
|
26 |
loaded_loras.append(lora.get('repo'))
|