Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import PIL
|
|
| 8 |
from PIL import Image
|
| 9 |
from typing import Any, Optional
|
| 10 |
#from tool import TextToImageTool
|
| 11 |
-
from transformers import launch_gradio_demo
|
| 12 |
|
| 13 |
from Gradio_UI import GradioUI
|
| 14 |
|
|
@@ -19,7 +19,7 @@ def my_custom_tool(arg1:str, img: bool)-> Any: #it's import to specify the retur
|
|
| 19 |
"""A tool that uses 'DuckDuckGoSearchTool' tool to answer any query and 'image_generation_tool' tool to generate image.
|
| 20 |
Args:
|
| 21 |
arg1: string query to be used to search answer via given search tool.
|
| 22 |
-
img: boolean value in TRUE/FALSE if
|
| 23 |
"""
|
| 24 |
try:
|
| 25 |
if img:
|
|
|
|
| 8 |
from PIL import Image
|
| 9 |
from typing import Any, Optional
|
| 10 |
#from tool import TextToImageTool
|
| 11 |
+
#from transformers import launch_gradio_demo
|
| 12 |
|
| 13 |
from Gradio_UI import GradioUI
|
| 14 |
|
|
|
|
| 19 |
"""A tool that uses 'DuckDuckGoSearchTool' tool to answer any query and 'image_generation_tool' tool to generate image.
|
| 20 |
Args:
|
| 21 |
arg1: string query to be used to search answer via given search tool.
|
| 22 |
+
img: boolean value in TRUE/FALSE if TRUE then use another tool.
|
| 23 |
"""
|
| 24 |
try:
|
| 25 |
if img:
|