Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1577,7 +1577,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
1577 |
# gr.Markdown("<h1 style='color: red;'>Talk to RADAR</h1>", elem_id="voice-markdown")
|
1578 |
|
1579 |
chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!")
|
1580 |
-
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta"], value="Alpha")
|
1581 |
|
1582 |
retriever_button = gr.Button("Retriever")
|
1583 |
|
@@ -1586,7 +1586,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
1586 |
|
1587 |
# gr.Markdown("<h1 style='color: red;'>Radar Map</h1>", elem_id="Map-Radar")
|
1588 |
# location_output = gr.HTML()
|
1589 |
-
audio_output = gr.Audio(interactive=False, autoplay=True)
|
1590 |
|
1591 |
def stop_audio():
|
1592 |
audio_output.stop()
|
@@ -1650,8 +1650,8 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
1650 |
|
1651 |
|
1652 |
|
1653 |
-
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy', every=0.1)
|
1654 |
-
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="api_voice_to_text")
|
1655 |
|
1656 |
# gr.Markdown("<h1 style='color: red;'>Example Prompts</h1>", elem_id="Example-Prompts")
|
1657 |
# gr.Examples(examples=examples, fn=insert_prompt,inputs=chat_input, outputs=chat_input)
|
|
|
1577 |
# gr.Markdown("<h1 style='color: red;'>Talk to RADAR</h1>", elem_id="voice-markdown")
|
1578 |
|
1579 |
chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!")
|
1580 |
+
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta"], value="Alpha",,interactive=False,visible=False)
|
1581 |
|
1582 |
retriever_button = gr.Button("Retriever")
|
1583 |
|
|
|
1586 |
|
1587 |
# gr.Markdown("<h1 style='color: red;'>Radar Map</h1>", elem_id="Map-Radar")
|
1588 |
# location_output = gr.HTML()
|
1589 |
+
# audio_output = gr.Audio(interactive=False, autoplay=True)
|
1590 |
|
1591 |
def stop_audio():
|
1592 |
audio_output.stop()
|
|
|
1650 |
|
1651 |
|
1652 |
|
1653 |
+
# audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy', every=0.1)
|
1654 |
+
# audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="api_voice_to_text")
|
1655 |
|
1656 |
# gr.Markdown("<h1 style='color: red;'>Example Prompts</h1>", elem_id="Example-Prompts")
|
1657 |
# gr.Examples(examples=examples, fn=insert_prompt,inputs=chat_input, outputs=chat_input)
|