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 huggingface_hub import login
|
10 |
from themes import IndonesiaTheme # Import custom IndonesiaTheme
|
11 |
|
@@ -16,7 +17,7 @@ HF_TOKEN_UPSCALER = "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"
|
|
16 |
HF_TOKEN = os.getenv('HF_TOKEN_UPSCALER')
|
17 |
HF_TOKEN_UPSCALER = os.getenv('HF_TOKEN_UPSCALER')
|
18 |
qwen_client = Client("K00B404/HugChatWrap",hf_token=HF_TOKEN)
|
19 |
-
|
20 |
for lora in loras:
|
21 |
print(lora.get('repo'))
|
22 |
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 loras import loaded_loras
|
10 |
from huggingface_hub import login
|
11 |
from themes import IndonesiaTheme # Import custom IndonesiaTheme
|
12 |
|
|
|
17 |
HF_TOKEN = os.getenv('HF_TOKEN_UPSCALER')
|
18 |
HF_TOKEN_UPSCALER = os.getenv('HF_TOKEN_UPSCALER')
|
19 |
qwen_client = Client("K00B404/HugChatWrap",hf_token=HF_TOKEN)
|
20 |
+
|
21 |
for lora in loras:
|
22 |
print(lora.get('repo'))
|
23 |
loaded_loras.append(lora.get('repo'))
|