Spaces:
Runtime error
Runtime error
Commit
·
691b17c
1
Parent(s):
b450bc8
correct audio iss
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ from langchain.document_loaders import (
|
|
61 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
62 |
from langchain.docstore.document import Document
|
63 |
import langchain
|
64 |
-
import playsound
|
65 |
|
66 |
langchain.debug = True
|
67 |
global memory2
|
@@ -926,7 +926,7 @@ def Text2Sound_HMI():
|
|
926 |
global Audio_output
|
927 |
print("Last answer in Text2Sound_HMI", last_answer)
|
928 |
text_to_speech_2(last_answer)
|
929 |
-
Filename_Chatbot = Audio_output[
|
930 |
print("Filename_Chatbot in Text2Sound_HMI", Filename_Chatbot)
|
931 |
# try:
|
932 |
# if Filename_Chatbot.split(".")[1] == 'wav':
|
|
|
61 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
62 |
from langchain.docstore.document import Document
|
63 |
import langchain
|
64 |
+
# import playsound
|
65 |
|
66 |
langchain.debug = True
|
67 |
global memory2
|
|
|
926 |
global Audio_output
|
927 |
print("Last answer in Text2Sound_HMI", last_answer)
|
928 |
text_to_speech_2(last_answer)
|
929 |
+
Filename_Chatbot = Audio_output[-1]
|
930 |
print("Filename_Chatbot in Text2Sound_HMI", Filename_Chatbot)
|
931 |
# try:
|
932 |
# if Filename_Chatbot.split(".")[1] == 'wav':
|