Spaces:
Running
Running
michal
commited on
Commit
·
c62c186
1
Parent(s):
b22ebf0
try better decorator
Browse files
app.py
CHANGED
@@ -89,8 +89,7 @@ def get_text(qry):
|
|
89 |
return prediction_text
|
90 |
|
91 |
|
92 |
-
|
93 |
-
@tool
|
94 |
def mysearch(query: str) -> str:
|
95 |
"""Query our own datasets.
|
96 |
"""
|
|
|
89 |
return prediction_text
|
90 |
|
91 |
|
92 |
+
@tool("mysearch", return_direct=True)
|
|
|
93 |
def mysearch(query: str) -> str:
|
94 |
"""Query our own datasets.
|
95 |
"""
|