Spaces:
Build error
Build error
Commit
·
bd763d1
1
Parent(s):
34761d7
correct audio output
Browse files
app.py
CHANGED
@@ -40,6 +40,9 @@ langchain.debug = True
|
|
40 |
global CurrentAgent
|
41 |
CurrentAgent = 'Structured Zero Short Agent'
|
42 |
|
|
|
|
|
|
|
43 |
class DB_Search2(BaseTool):
|
44 |
name = "Vector Database Search"
|
45 |
description = "This is the internal vector database to search information firstly (i.e. engineering data, acronym.)"
|
@@ -153,7 +156,7 @@ def text_to_speech_loc2(Text_input):
|
|
153 |
Audio_output.append(audio.name)
|
154 |
return audio
|
155 |
|
156 |
-
|
157 |
|
158 |
Text2Sound_tool_loc = Tool(
|
159 |
name = "Text To Sound API 2",
|
|
|
40 |
global CurrentAgent
|
41 |
CurrentAgent = 'Structured Zero Short Agent'
|
42 |
|
43 |
+
global Audio_output
|
44 |
+
Audio_output = []
|
45 |
+
|
46 |
class DB_Search2(BaseTool):
|
47 |
name = "Vector Database Search"
|
48 |
description = "This is the internal vector database to search information firstly (i.e. engineering data, acronym.)"
|
|
|
156 |
Audio_output.append(audio.name)
|
157 |
return audio
|
158 |
|
159 |
+
print("text to speech2: ", text_to_speech_loc2("Good morning."))
|
160 |
|
161 |
Text2Sound_tool_loc = Tool(
|
162 |
name = "Text To Sound API 2",
|