bricksandwich commited on
Commit
e55e980
·
verified ·
1 Parent(s): 3747792

should fix various bugs in previous commit

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -9,10 +9,14 @@ from Gradio_UI import GradioUI
9
 
10
 
11
  @tool
12
- def xkcd_tool(id:int)-> str:
13
  """A tool that fetches XKCD comics. For the latest comic do not pass an id argument.
14
  This tool will return the requested comic title, alt text, and a url which points to the comic image.
15
- Compute a Markdown string that displays the title as a header, the alt text as a blockquote, and the image as an image and return that as your final answer.
 
 
 
 
16
  Args:
17
  id: a number representing a valid XKCD comic ID, or none for the latest comic.
18
  """
 
9
 
10
 
11
  @tool
12
+ def xkcd_tool(id:int = 0)-> str:
13
  """A tool that fetches XKCD comics. For the latest comic do not pass an id argument.
14
  This tool will return the requested comic title, alt text, and a url which points to the comic image.
15
+ Create a Markdown version of the comic with the following requirements:
16
+ - The title should be a level 1 header.
17
+ - The alt text should be a blcokquote.
18
+ - The image should be displayed. using the following syntax: ![alt text](img_url)
19
+ The Final Answer should be This markdown string
20
  Args:
21
  id: a number representing a valid XKCD comic ID, or none for the latest comic.
22
  """