Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import pytz
|
|
| 5 |
import yaml
|
| 6 |
import comics
|
| 7 |
import random
|
|
|
|
| 8 |
from tools.final_answer import FinalAnswerTool
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
|
@@ -51,7 +52,7 @@ def get_weather(city: str) -> str:
|
|
| 51 |
return f"Error fetching weather conditions for {city}"
|
| 52 |
|
| 53 |
@tool
|
| 54 |
-
def get_comics() ->
|
| 55 |
"""A tool that fetches random cartoon strip.
|
| 56 |
Args:
|
| 57 |
"""
|
|
|
|
| 5 |
import yaml
|
| 6 |
import comics
|
| 7 |
import random
|
| 8 |
+
import PIL
|
| 9 |
from tools.final_answer import FinalAnswerTool
|
| 10 |
|
| 11 |
from Gradio_UI import GradioUI
|
|
|
|
| 52 |
return f"Error fetching weather conditions for {city}"
|
| 53 |
|
| 54 |
@tool
|
| 55 |
+
def get_comics() -> Image:
|
| 56 |
"""A tool that fetches random cartoon strip.
|
| 57 |
Args:
|
| 58 |
"""
|