Spaces:
Sleeping
Sleeping
lichorosario
commited on
Commit
·
6cdc812
1
Parent(s):
1c32ab0
feat: Habilitar aumento de resolución de imágenes con valores fijos
Browse files
app.py
CHANGED
@@ -66,7 +66,6 @@ def update_selection(evt: gr.SelectData):
|
|
66 |
|
67 |
|
68 |
def upscale(image, resolution, inf_steps, strength, hdr_effect, guidance_scale):
|
69 |
-
return[image, image]
|
70 |
client = Client("gokaygokay/Tile-Upscaler")
|
71 |
result = client.predict(
|
72 |
param_0=handle_file(image),
|
@@ -77,6 +76,7 @@ def upscale(image, resolution, inf_steps, strength, hdr_effect, guidance_scale):
|
|
77 |
param_5=guidance_scale,
|
78 |
api_name="/wrapper"
|
79 |
)
|
|
|
80 |
return result
|
81 |
|
82 |
css="""
|
|
|
66 |
|
67 |
|
68 |
def upscale(image, resolution, inf_steps, strength, hdr_effect, guidance_scale):
|
|
|
69 |
client = Client("gokaygokay/Tile-Upscaler")
|
70 |
result = client.predict(
|
71 |
param_0=handle_file(image),
|
|
|
76 |
param_5=guidance_scale,
|
77 |
api_name="/wrapper"
|
78 |
)
|
79 |
+
return[image, image]
|
80 |
return result
|
81 |
|
82 |
css="""
|