liamgh commited on
Commit
967e5ce
·
verified ·
1 Parent(s): 72c71dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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 get_books_by_subject(subject:str, published_in:str)-> str: #it's import to specify the return type
14
- #Keep this format for the description / args / args description but feel free to modify the tool
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", "")