SandraCLV commited on
Commit
58690d0
·
1 Parent(s): 024bedc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -69,8 +69,9 @@ 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
-
 
74
  for txt in text_output:
75
  output_txt[idx] = gr.Textbox(label=text_output,lines=1,max_lines=1,value=text_output,placeholder="Interpretation")
76
  input_sid = gr.Textbox(
 
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)
73
+
74
+ print(text_output)
75
  for txt in text_output:
76
  output_txt[idx] = gr.Textbox(label=text_output,lines=1,max_lines=1,value=text_output,placeholder="Interpretation")
77
  input_sid = gr.Textbox(