Spaces:
Runtime error
Runtime error
Commit
·
a30b66b
1
Parent(s):
bd571b5
mixer retry
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -904,7 +904,7 @@ def playsound2():
|
|
| 904 |
mixer.music.load(soundfilename)
|
| 905 |
mixer.music.play()
|
| 906 |
except Exception as e:
|
| 907 |
-
print("
|
| 908 |
return None
|
| 909 |
|
| 910 |
def HMI_Runing():
|
|
@@ -1067,7 +1067,7 @@ with gr.Blocks() as demo:
|
|
| 1067 |
frash_logs.click(read_logs, None, logs)
|
| 1068 |
voice_input.stop_recording(SingleTalk, [voice_input, chatbot], [voice_input, voice_output, chatbot]).\
|
| 1069 |
success(Text2Sound_HMI,None,None).\
|
| 1070 |
-
success(
|
| 1071 |
success(ClearAudio, None, voice_output)
|
| 1072 |
# voice_output.end(ClearAudio, None, voice_output)
|
| 1073 |
# def clear_voice():
|
|
|
|
| 904 |
mixer.music.load(soundfilename)
|
| 905 |
mixer.music.play()
|
| 906 |
except Exception as e:
|
| 907 |
+
print("playsound2 error:", e)
|
| 908 |
return None
|
| 909 |
|
| 910 |
def HMI_Runing():
|
|
|
|
| 1067 |
frash_logs.click(read_logs, None, logs)
|
| 1068 |
voice_input.stop_recording(SingleTalk, [voice_input, chatbot], [voice_input, voice_output, chatbot]).\
|
| 1069 |
success(Text2Sound_HMI,None,None).\
|
| 1070 |
+
success(playsound1, None, voice_output).\
|
| 1071 |
success(ClearAudio, None, voice_output)
|
| 1072 |
# voice_output.end(ClearAudio, None, voice_output)
|
| 1073 |
# def clear_voice():
|
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# chromadb
|
| 2 |
langchain
|
| 3 |
openai
|
| 4 |
-
gradio
|
| 5 |
pinecone-client
|
| 6 |
wikipedia
|
| 7 |
duckduckgo-search
|
|
|
|
| 1 |
# chromadb
|
| 2 |
langchain
|
| 3 |
openai
|
| 4 |
+
gradio == 3.40.0
|
| 5 |
pinecone-client
|
| 6 |
wikipedia
|
| 7 |
duckduckgo-search
|