Spaces:
Sleeping
Sleeping
techysanoj
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ audio_input = gr.components.Audio(source="microphone", type="filepath")
|
|
44 |
output_text = gr.components.Textbox(label="Answer")
|
45 |
output_audio = gr.components.Audio(label="Answer Audio", type="numpy")
|
46 |
|
47 |
-
|
48 |
fn=answer_question,
|
49 |
inputs=[context_input, question_input, audio_input],
|
50 |
outputs=[output_text, output_audio],
|
@@ -56,4 +56,4 @@ interface = gr.Interface(
|
|
56 |
]
|
57 |
)
|
58 |
# Launch the Gradio interface
|
59 |
-
|
|
|
44 |
output_text = gr.components.Textbox(label="Answer")
|
45 |
output_audio = gr.components.Audio(label="Answer Audio", type="numpy")
|
46 |
|
47 |
+
inter = gr.Interface(
|
48 |
fn=answer_question,
|
49 |
inputs=[context_input, question_input, audio_input],
|
50 |
outputs=[output_text, output_audio],
|
|
|
56 |
]
|
57 |
)
|
58 |
# Launch the Gradio interface
|
59 |
+
inter.launch()
|