EnriqueVega1995 commited on
Commit
23e8780
1 Parent(s): f5c2598

Adde image caption

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def generate_captions(image, text=""):
25
  iface = gr.Interface(
26
  fn=generate_captions,
27
  inputs=[
28
- gr.Image(label="Cargar/Arrastrar Imagen", image_mode='RGB', tool="editor"), # Eliminado el argumento 'shape'
29
  gr.Textbox(label="Texto Condicional (opcional)", placeholder="Introduce un texto condicional (opcional)...")
30
  ],
31
  outputs=gr.Textbox(label="Subtítulo Generado"),
 
25
  iface = gr.Interface(
26
  fn=generate_captions,
27
  inputs=[
28
+ gr.Image(label="Cargar/Arrastrar Imagen"), # Quitado el argumento 'tool'
29
  gr.Textbox(label="Texto Condicional (opcional)", placeholder="Introduce un texto condicional (opcional)...")
30
  ],
31
  outputs=gr.Textbox(label="Subtítulo Generado"),