Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 71 |
idx=0
|
|
|
|
| 72 |
for txt in inputsImg:
|
| 73 |
-
|
| 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",
|