Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,9 @@ from urllib.parse import quote
|
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
-
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
-
def
|
| 14 |
-
|
| 15 |
-
"""A tool that fetches books from the OpenLibrary based on a given keyword.
|
| 16 |
Args:
|
| 17 |
subject: A string representing the subject (e.g. 'love', 'cars', 'Girls Aloud')
|
| 18 |
published_in: A date range for the publication of the book. This is optional. (e.g. "1500-1600", "1980-1989", "")
|
|
|
|
| 8 |
|
| 9 |
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 details 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", "")
|