Spaces:
Runtime error
Runtime error
Commit
·
ccf3df7
1
Parent(s):
56fd6e3
update tool name
Browse files
app.py
CHANGED
|
@@ -212,7 +212,7 @@ def UpdateDb():
|
|
| 212 |
|
| 213 |
|
| 214 |
class DB_Search(BaseTool):
|
| 215 |
-
name = "
|
| 216 |
description = "This is the internal database to search information firstly. If information is found, it is trustful."
|
| 217 |
def _run(self, query: str) -> str:
|
| 218 |
response, source = QAQuery_p(query)
|
|
@@ -299,7 +299,7 @@ def text_to_speech_2(text):
|
|
| 299 |
return None
|
| 300 |
|
| 301 |
Text2Sound_tool = Tool(
|
| 302 |
-
name = "
|
| 303 |
# func = Text2Sound,
|
| 304 |
func = text_to_speech_2,
|
| 305 |
description = "Useful when you need to convert text into sound file."
|
|
|
|
| 212 |
|
| 213 |
|
| 214 |
class DB_Search(BaseTool):
|
| 215 |
+
name = "Vector_Database_Search"
|
| 216 |
description = "This is the internal database to search information firstly. If information is found, it is trustful."
|
| 217 |
def _run(self, query: str) -> str:
|
| 218 |
response, source = QAQuery_p(query)
|
|
|
|
| 299 |
return None
|
| 300 |
|
| 301 |
Text2Sound_tool = Tool(
|
| 302 |
+
name = "Text_To_Sound_REST_API",
|
| 303 |
# func = Text2Sound,
|
| 304 |
func = text_to_speech_2,
|
| 305 |
description = "Useful when you need to convert text into sound file."
|