Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -403,6 +403,7 @@ def transcribe(
|
|
| 403 |
latency_TTS,
|
| 404 |
)
|
| 405 |
text_str1 = text_str
|
|
|
|
| 406 |
if change:
|
| 407 |
print("Output changed")
|
| 408 |
if asr_output_str != "":
|
|
@@ -424,14 +425,6 @@ def transcribe(
|
|
| 424 |
yield stream, gr.Textbox(visible=False), gr.Textbox(
|
| 425 |
visible=False
|
| 426 |
), gr.Audio(visible=False), gr.Audio(visible=False)
|
| 427 |
-
if upload_to_hub is not None:
|
| 428 |
-
api.upload_folder(
|
| 429 |
-
folder_path="flagged_data_points",
|
| 430 |
-
path_in_repo="checkpoint_" + str(start_record_time),
|
| 431 |
-
repo_id=upload_to_hub,
|
| 432 |
-
repo_type="dataset",
|
| 433 |
-
token=access_token,
|
| 434 |
-
)
|
| 435 |
dialogue_model.chat.buffer = []
|
| 436 |
text_str = ""
|
| 437 |
audio_output = None
|
|
@@ -700,6 +693,6 @@ def start():
|
|
| 700 |
)
|
| 701 |
|
| 702 |
demo.queue(max_size=10, default_concurrency_limit=1)
|
| 703 |
-
demo.launch()
|
| 704 |
|
| 705 |
start()
|
|
|
|
| 403 |
latency_TTS,
|
| 404 |
)
|
| 405 |
text_str1 = text_str
|
| 406 |
+
print(text_str1, flush=True)
|
| 407 |
if change:
|
| 408 |
print("Output changed")
|
| 409 |
if asr_output_str != "":
|
|
|
|
| 425 |
yield stream, gr.Textbox(visible=False), gr.Textbox(
|
| 426 |
visible=False
|
| 427 |
), gr.Audio(visible=False), gr.Audio(visible=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 428 |
dialogue_model.chat.buffer = []
|
| 429 |
text_str = ""
|
| 430 |
audio_output = None
|
|
|
|
| 693 |
)
|
| 694 |
|
| 695 |
demo.queue(max_size=10, default_concurrency_limit=1)
|
| 696 |
+
demo.launch(debug=True)
|
| 697 |
|
| 698 |
start()
|