Spaces:
Runtime error
Runtime error
Commit
·
0e213a6
1
Parent(s):
a732d4f
correct audio_output
Browse files
app.py
CHANGED
|
@@ -90,6 +90,9 @@ import torch
|
|
| 90 |
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
| 91 |
sample = ds[0]["audio"]
|
| 92 |
|
|
|
|
|
|
|
|
|
|
| 93 |
def speech_to_text_loc(audio):
|
| 94 |
device = "cpu"
|
| 95 |
pipe = pipeline(
|
|
@@ -334,8 +337,7 @@ file_list_loaded = ''
|
|
| 334 |
chunk_size = 500
|
| 335 |
chunk_overlap = 300
|
| 336 |
|
| 337 |
-
|
| 338 |
-
Audio_output = []
|
| 339 |
|
| 340 |
global Filename_Chatbot
|
| 341 |
Filename_Chatbot = ""
|
|
@@ -1436,7 +1438,7 @@ with gr.Blocks() as demo:
|
|
| 1436 |
|
| 1437 |
with gr.Column() as main2:
|
| 1438 |
title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
|
| 1439 |
-
<center> v0.6: Powered by MECH Core Team - GPT4 REMOTE MODE"""),
|
| 1440 |
chatbot = gr.Chatbot()
|
| 1441 |
with gr.Row():
|
| 1442 |
inputtext = gr.Textbox(
|
|
|
|
| 90 |
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
| 91 |
sample = ds[0]["audio"]
|
| 92 |
|
| 93 |
+
global Audio_output
|
| 94 |
+
Audio_output = []
|
| 95 |
+
|
| 96 |
def speech_to_text_loc(audio):
|
| 97 |
device = "cpu"
|
| 98 |
pipe = pipeline(
|
|
|
|
| 337 |
chunk_size = 500
|
| 338 |
chunk_overlap = 300
|
| 339 |
|
| 340 |
+
|
|
|
|
| 341 |
|
| 342 |
global Filename_Chatbot
|
| 343 |
Filename_Chatbot = ""
|
|
|
|
| 1438 |
|
| 1439 |
with gr.Column() as main2:
|
| 1440 |
title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
|
| 1441 |
+
<center> v0.6.1: Powered by MECH Core Team - GPT4 REMOTE MODE"""),
|
| 1442 |
chatbot = gr.Chatbot()
|
| 1443 |
with gr.Row():
|
| 1444 |
inputtext = gr.Textbox(
|