lichorosario commited on
Commit
bf86367
1 Parent(s): bfb7036

feat: Habilitar aumento de resolución de imágenes con valores fijos

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -71,16 +71,16 @@ def update_selection(evt: gr.SelectData):
71
 
72
  def upscale(image, resolution, inf_steps, strength, hdr_effect, guidance_scale):
73
  try:
74
- client = Client("gokaygokay/Tile-Upscaler")
75
- result = client.predict(
76
- param_0=handle_file(image),
77
- param_1=resolution,
78
- param_2=inf_steps,
79
- param_3=strength,
80
- param_4=hdr_effect,
81
- param_5=guidance_scale,
82
- api_name="/wrapper"
83
- )
84
  return [image, image]
85
  return result
86
  except Exception as e:
 
71
 
72
  def upscale(image, resolution, inf_steps, strength, hdr_effect, guidance_scale):
73
  try:
74
+ # client = Client("gokaygokay/Tile-Upscaler")
75
+ # result = client.predict(
76
+ # param_0=handle_file(image),
77
+ # param_1=resolution,
78
+ # param_2=inf_steps,
79
+ # param_3=strength,
80
+ # param_4=hdr_effect,
81
+ # param_5=guidance_scale,
82
+ # api_name="/wrapper"
83
+ # )
84
  return [image, image]
85
  return result
86
  except Exception as e: