Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,7 @@ with demo:
|
|
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(
|
@@ -95,4 +96,5 @@ with demo:
|
|
95 |
outputs=[output_txt,output_audio,input_sid,input_speed],
|
96 |
description="image to audio demo",
|
97 |
article = "",
|
98 |
-
)
|
|
|
|
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(
|
|
|
96 |
outputs=[output_txt,output_audio,input_sid,input_speed],
|
97 |
description="image to audio demo",
|
98 |
article = "",
|
99 |
+
)
|
100 |
+
demo.launch()
|