should fix various bugs in previous commit
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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: 
|
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 |
"""
|