Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1500,7 +1500,7 @@ def load_file(file, user):
|
|
| 1500 |
|
| 1501 |
# outputs=[uploaded_file_path, output_window]
|
| 1502 |
|
| 1503 |
-
with gr.Blocks(
|
| 1504 |
history = gr.State([])
|
| 1505 |
password = gr.State("")
|
| 1506 |
user = gr.State("unknown")
|
|
@@ -1627,7 +1627,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 1627 |
help_button = gr.Button(value='Help & Hints')
|
| 1628 |
with gr.Row():
|
| 1629 |
audio_widget = gr.Audio(type='filepath', format='wav',waveform_options=gr.WaveformOptions(
|
| 1630 |
-
show_recording_waveform=True), sources=['microphone'], scale = 3, label="Prompt/Question Voice Entry", max_length=120)
|
| 1631 |
reset_button = gr.ClearButton(value="Reset Voice Entry", scale=1) #new_func1()
|
| 1632 |
with gr.Row():
|
| 1633 |
clear_button = gr.Button(value="Restart Conversation")
|
|
@@ -1685,4 +1685,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 1685 |
outputs=[file_uploader, output_window])
|
| 1686 |
file_uploader.upload(fn=load_file, inputs=[file_uploader, user], outputs=[uploaded_file_path, output_window])
|
| 1687 |
# demo.unload(final_clean_up(user))
|
| 1688 |
-
demo.launch(share=True, allowed_paths=[dataDir], ssr_mode=False)
|
|
|
|
| 1500 |
|
| 1501 |
# outputs=[uploaded_file_path, output_window]
|
| 1502 |
|
| 1503 |
+
with gr.Blocks() as demo:
|
| 1504 |
history = gr.State([])
|
| 1505 |
password = gr.State("")
|
| 1506 |
user = gr.State("unknown")
|
|
|
|
| 1627 |
help_button = gr.Button(value='Help & Hints')
|
| 1628 |
with gr.Row():
|
| 1629 |
audio_widget = gr.Audio(type='filepath', format='wav',waveform_options=gr.WaveformOptions(
|
| 1630 |
+
show_recording_waveform=True), sources=['microphone'], scale = 3, label="Prompt/Question Voice Entry") # , max_length=120)
|
| 1631 |
reset_button = gr.ClearButton(value="Reset Voice Entry", scale=1) #new_func1()
|
| 1632 |
with gr.Row():
|
| 1633 |
clear_button = gr.Button(value="Restart Conversation")
|
|
|
|
| 1685 |
outputs=[file_uploader, output_window])
|
| 1686 |
file_uploader.upload(fn=load_file, inputs=[file_uploader, user], outputs=[uploaded_file_path, output_window])
|
| 1687 |
# demo.unload(final_clean_up(user))
|
| 1688 |
+
demo.launch(share=True, allowed_paths=[dataDir], ssr_mode=False, theme=gr.themes.Soft())
|