Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
71 |
idx=0
|
72 |
text_output = image_to_text_model(inputsImg)[0]['label']
|
73 |
-
for txt in
|
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",
|