Spaces:
Runtime error
Runtime error
bugfix
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import requests
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
-
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
@@ -12,7 +12,7 @@ from Gradio_UI import GradioUI
|
|
12 |
|
13 |
@tool
|
14 |
# it's import to specify the return type
|
15 |
-
def generate_image(prompt: str, style: str) ->
|
16 |
"""A tool that generates an image based on a prompt and a style.
|
17 |
Args:
|
18 |
prompt: the prompt to generate the image
|
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
+
import PIL
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
12 |
|
13 |
@tool
|
14 |
# it's import to specify the return type
|
15 |
+
def generate_image(prompt: str, style: str) -> PIL.Image.Image:
|
16 |
"""A tool that generates an image based on a prompt and a style.
|
17 |
Args:
|
18 |
prompt: the prompt to generate the image
|