SandraCLV commited on
Commit
d9811eb
·
1 Parent(s): 7807f29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ with demo:
75
  language_choices = list(language_to_models.keys())
76
  inputsImg=gr.Image(type='pil')
77
  idx=0
78
- for txt in image_to_text(inputsImg)
79
  output_txt[idx] = gr.Textbox(label=txt,lines=1,max_lines=1,value=txt,placeholder="Interpretation")
80
  input_sid = gr.Textbox(
81
  label="Speaker ID",
@@ -96,7 +96,7 @@ with demo:
96
  output_audio[idx] = gr.Audio(label="Output")
97
  output_info[idx] = gr.HTML(label="Info")
98
  idx=idx+1
99
- gr.Interface(fn=image_to_text,
100
  title="Image to Text Interpretation",
101
  inputs=inputsImg,
102
  outputs=[output_txt,output_audio,input_sid,input_speed],
 
75
  language_choices = list(language_to_models.keys())
76
  inputsImg=gr.Image(type='pil')
77
  idx=0
78
+ for txt in image_to_text(inputsImg):
79
  output_txt[idx] = gr.Textbox(label=txt,lines=1,max_lines=1,value=txt,placeholder="Interpretation")
80
  input_sid = gr.Textbox(
81
  label="Speaker ID",
 
96
  output_audio[idx] = gr.Audio(label="Output")
97
  output_info[idx] = gr.HTML(label="Info")
98
  idx=idx+1
99
+ gr.Interface(fn=text_to_speech,
100
  title="Image to Text Interpretation",
101
  inputs=inputsImg,
102
  outputs=[output_txt,output_audio,input_sid,input_speed],