Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
|
|
| 10 |
|
| 11 |
@tool
|
| 12 |
def get_books_for_subject(subject:str, published_in:str)-> str:
|
| 13 |
-
"""A tool that fetches books
|
| 14 |
Args:
|
| 15 |
subject: A string representing the subject (e.g. 'love', 'cars', 'Girls Aloud')
|
| 16 |
published_in: A date range for the publication of the book. This is optional. (e.g. "1500-1600", "1980-1989", "")
|
|
@@ -56,7 +56,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 56 |
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 60 |
max_steps=6,
|
| 61 |
verbosity_level=1,
|
| 62 |
grammar=None,
|
|
|
|
| 10 |
|
| 11 |
@tool
|
| 12 |
def get_books_for_subject(subject:str, published_in:str)-> str:
|
| 13 |
+
"""A tool that fetches books for a given keyword.
|
| 14 |
Args:
|
| 15 |
subject: A string representing the subject (e.g. 'love', 'cars', 'Girls Aloud')
|
| 16 |
published_in: A date range for the publication of the book. This is optional. (e.g. "1500-1600", "1980-1989", "")
|
|
|
|
| 56 |
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
+
tools=[final_answer, get_books_for_subject], ## add your tools here (don't remove final answer)
|
| 60 |
max_steps=6,
|
| 61 |
verbosity_level=1,
|
| 62 |
grammar=None,
|