Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -392,7 +392,12 @@ with gr.Blocks(title="BLIP Vision App") as demo:
|
|
| 392 |
|
| 393 |
with gr.Tab("Voice Question Answering"):
|
| 394 |
img_vqa = gr.Image(type="pil", label="Upload Image for Voice Q&A")
|
| 395 |
-
voice_in = gr.Audio(source="microphone", type="filepath", label="Speak your question")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
voice_out_text = gr.Textbox(label="Voice Q&A Output")
|
| 397 |
voice_out_audio = gr.Audio(label="Spoken Answer", type="filepath")
|
| 398 |
btn_voice = gr.Button("Get Answer")
|
|
|
|
| 392 |
|
| 393 |
with gr.Tab("Voice Question Answering"):
|
| 394 |
img_vqa = gr.Image(type="pil", label="Upload Image for Voice Q&A")
|
| 395 |
+
#voice_in = gr.Audio(source="microphone", type="filepath", label="Speak your question")
|
| 396 |
+
voice_in = gr.Audio(
|
| 397 |
+
sources=["microphone"],
|
| 398 |
+
type="filepath",
|
| 399 |
+
label="Speak your question"
|
| 400 |
+
)
|
| 401 |
voice_out_text = gr.Textbox(label="Voice Q&A Output")
|
| 402 |
voice_out_audio = gr.Audio(label="Spoken Answer", type="filepath")
|
| 403 |
btn_voice = gr.Button("Get Answer")
|