Spaces:
Sleeping
Sleeping
lichorosario
commited on
Commit
•
298633b
1
Parent(s):
e8606c8
Actualizar app.py para usar el cliente Tile-Upscaler nuevo
Browse files
app.py
CHANGED
@@ -12,14 +12,18 @@ job = None
|
|
12 |
# Verificar las URLs de los modelos
|
13 |
custom_model_url = "https://fffiloni-sd-xl-custom-model.hf.space"
|
14 |
tile_upscaler_url = "https://gokaygokay/Tile-Upscaler.hf.space"
|
|
|
15 |
try:
|
16 |
client_custom_model = Client(custom_model_url)
|
17 |
-
# client_custom_model = CustomModelClient(custom_model_url)
|
18 |
print(f"Loaded custom model from {custom_model_url}")
|
19 |
except ValueError as e:
|
20 |
print(f"Failed to load custom model: {e}")
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
def infer(selected_index, prompt, style_prompt, inf_steps, guidance_scale, width, height, seed, lora_weight, progress=gr.Progress(track_tqdm=True)):
|
|
|
12 |
# Verificar las URLs de los modelos
|
13 |
custom_model_url = "https://fffiloni-sd-xl-custom-model.hf.space"
|
14 |
tile_upscaler_url = "https://gokaygokay/Tile-Upscaler.hf.space"
|
15 |
+
|
16 |
try:
|
17 |
client_custom_model = Client(custom_model_url)
|
|
|
18 |
print(f"Loaded custom model from {custom_model_url}")
|
19 |
except ValueError as e:
|
20 |
print(f"Failed to load custom model: {e}")
|
21 |
|
22 |
+
try:
|
23 |
+
client_tile_upscaler = Client(tile_upscaler_url)
|
24 |
+
print(f"Loaded custom model from {tile_upscaler_url}")
|
25 |
+
except ValueError as e:
|
26 |
+
print(f"Failed to load custom model: {e}")
|
27 |
|
28 |
|
29 |
def infer(selected_index, prompt, style_prompt, inf_steps, guidance_scale, width, height, seed, lora_weight, progress=gr.Progress(track_tqdm=True)):
|