RobotJelly commited on
Commit
3fd5aeb
·
verified ·
1 Parent(s): f8ef3ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 FALSE then use another tool.
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: