SandraCLV commited on
Commit
fb75a66
·
1 Parent(s): a00f3e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -67,11 +67,10 @@ demo = gr.Blocks()
67
 
68
  with demo:
69
  language_choices = list(language_to_models.keys())
70
- inputsImg=gr.inputs.Image(type="pil")
71
  idx=0
72
  text_output = image_to_text_model(inputsImg)[0]['label']
73
- for txt in inputsImg:
74
-
75
  output_txt[idx] = gr.Textbox(label=text_output,lines=1,max_lines=1,value=text_output,placeholder="Interpretation")
76
  input_sid = gr.Textbox(
77
  label="Speaker ID",
 
67
 
68
  with demo:
69
  language_choices = list(language_to_models.keys())
70
+ inputsImg=gr.Image(type='pil')
71
  idx=0
72
  text_output = image_to_text_model(inputsImg)[0]['label']
73
+ for txt in text_output:
 
74
  output_txt[idx] = gr.Textbox(label=text_output,lines=1,max_lines=1,value=text_output,placeholder="Interpretation")
75
  input_sid = gr.Textbox(
76
  label="Speaker ID",