Spaces:
Runtime error
Runtime error
Update web_demo.py
Browse files- web_demo.py +3 -10
web_demo.py
CHANGED
|
@@ -276,7 +276,7 @@ def _launch_demo(model, tokenizer, audio_tokenizer):
|
|
| 276 |
add_audio_button = gr.Button("Submit Audio (ζδΊ€ι³ι’)")
|
| 277 |
empty_bin = gr.Button("π§Ή Clear History (ζΈ
ι€εε²)")
|
| 278 |
task = gr.Radio(
|
| 279 |
-
choices = ["ASR", "TTS", "Spoken QA"], label="TASK",value = 'Spoken QA'
|
| 280 |
)
|
| 281 |
|
| 282 |
with gr.Row(scale=1):
|
|
@@ -302,16 +302,9 @@ def _launch_demo(model, tokenizer, audio_tokenizer):
|
|
| 302 |
)
|
| 303 |
|
| 304 |
|
| 305 |
-
server_port = 18806
|
| 306 |
demo.launch(
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
server_name="0.0.0.0",
|
| 310 |
-
server_port=server_port,
|
| 311 |
-
show_api=False,
|
| 312 |
-
show_error=False,
|
| 313 |
-
|
| 314 |
-
)
|
| 315 |
|
| 316 |
def main():
|
| 317 |
|
|
|
|
| 276 |
add_audio_button = gr.Button("Submit Audio (ζδΊ€ι³ι’)")
|
| 277 |
empty_bin = gr.Button("π§Ή Clear History (ζΈ
ι€εε²)")
|
| 278 |
task = gr.Radio(
|
| 279 |
+
choices = ["ASR", "TTS", "Spoken QA"], label="TASK", value = 'Spoken QA'
|
| 280 |
)
|
| 281 |
|
| 282 |
with gr.Row(scale=1):
|
|
|
|
| 302 |
)
|
| 303 |
|
| 304 |
|
|
|
|
| 305 |
demo.launch(
|
| 306 |
+
show_error=True,
|
| 307 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
|
| 309 |
def main():
|
| 310 |
|