Spaces:
Sleeping
Sleeping
Fix transform class to tool
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 23 |
|
| 24 |
#from datasets import load_dataset
|
| 25 |
#ds = load_dataset("nfliu/decontextualization")
|
| 26 |
-
|
| 27 |
def answer_nfl_question_tool(question: str) -> str:
|
| 28 |
"""
|
| 29 |
A tool that answers the user's questions about the NFL rules, tactics and players.
|
|
|
|
| 23 |
|
| 24 |
#from datasets import load_dataset
|
| 25 |
#ds = load_dataset("nfliu/decontextualization")
|
| 26 |
+
@tool
|
| 27 |
def answer_nfl_question_tool(question: str) -> str:
|
| 28 |
"""
|
| 29 |
A tool that answers the user's questions about the NFL rules, tactics and players.
|