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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -67,10 +67,11 @@ demo = gr.Blocks()
67
 
68
  with demo:
69
  language_choices = list(language_to_models.keys())
70
- inputsImg=gr.Image(type='pil')
71
  idx=0
 
72
  for txt in inputsImg:
73
- text_output = image_to_text_model(txt)[0]['label']
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",
 
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",