Update app.py
Browse files
app.py
CHANGED
@@ -204,14 +204,15 @@ def transcribe(audio, text):
|
|
204 |
# Define the input and output components for Gradio
|
205 |
audio_input = Audio(source="microphone", type="filepath", label="Record your message")
|
206 |
text_input = Textbox(label="Type your message", max_length=4096)
|
207 |
-
output_text =
|
|
|
208 |
output_audio = Audio()
|
209 |
|
210 |
# Define the Gradio interface
|
211 |
iface = gr.Interface(
|
212 |
fn=transcribe,
|
213 |
inputs=[audio_input, text_input],
|
214 |
-
outputs=[output_text],
|
215 |
title="Hold On, Pain Ends (HOPE)",
|
216 |
description="Talk to Your USMLE Tutor HOPE",
|
217 |
theme="compact",
|
|
|
204 |
# Define the input and output components for Gradio
|
205 |
audio_input = Audio(source="microphone", type="filepath", label="Record your message")
|
206 |
text_input = Textbox(label="Type your message", max_length=4096)
|
207 |
+
output_text = Textbox(label="Text Output")
|
208 |
+
output_html = Markdown()
|
209 |
output_audio = Audio()
|
210 |
|
211 |
# Define the Gradio interface
|
212 |
iface = gr.Interface(
|
213 |
fn=transcribe,
|
214 |
inputs=[audio_input, text_input],
|
215 |
+
outputs=[output_text, output_html],
|
216 |
title="Hold On, Pain Ends (HOPE)",
|
217 |
description="Talk to Your USMLE Tutor HOPE",
|
218 |
theme="compact",
|