tomaseo2022 commited on
Commit
25273e6
1 Parent(s): 44e9193

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -12,16 +12,19 @@ def sepia(input_img):
12
  def clear_image():
13
  return None
14
 
 
 
 
 
 
 
15
  iface = gr.Interface(
16
  sepia,
17
  gr.components.Image(), "image",
18
  css=".footer{display:none !important}",
19
- clear_button=[gr.ClearButton("Limpiar")],
20
- convert_button=[gr.Button("Convertir a sepia")]
21
  )
22
 
23
-
24
- iface.launch()
25
 
26
 
27
 
 
12
  def clear_image():
13
  return None
14
 
15
+ # Botón para limpiar la imagen
16
+ clear_button = gr.ClearButton("Limpiar")
17
+
18
+ # Botón para convertir a sepia
19
+ convert_button = gr.Button("Convertir a sepia")
20
+
21
  iface = gr.Interface(
22
  sepia,
23
  gr.components.Image(), "image",
24
  css=".footer{display:none !important}",
 
 
25
  )
26
 
27
+ iface.launch(buttons=[clear_button, convert_button])
 
28
 
29
 
30