Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from tools.final_answer import FinalAnswerTool
|
|
7 |
from tools.visit_webpage import VisitWebpageTool
|
8 |
import os
|
9 |
from Gradio_UI import GradioUI
|
10 |
-
import
|
11 |
from duckduckgo_search import DDGS
|
12 |
|
13 |
import datetime
|
@@ -16,7 +16,7 @@ import time
|
|
16 |
|
17 |
|
18 |
@tool
|
19 |
-
def show_image(image :
|
20 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
21 |
"""A tool that shows image generated by image_generation_tool
|
22 |
Args:
|
|
|
7 |
from tools.visit_webpage import VisitWebpageTool
|
8 |
import os
|
9 |
from Gradio_UI import GradioUI
|
10 |
+
from PIL import Image
|
11 |
from duckduckgo_search import DDGS
|
12 |
|
13 |
import datetime
|
|
|
16 |
|
17 |
|
18 |
@tool
|
19 |
+
def show_image(image : Image.Image )-> str :#it's import to specify the return type
|
20 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
21 |
"""A tool that shows image generated by image_generation_tool
|
22 |
Args:
|