Spaces:
Sleeping
Sleeping
remove image gen as it has been already provided
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool, tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
@@ -9,11 +9,6 @@ from duckduckgo_search import DDGS
|
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
-
image_generation_tool = Tool.from_space(
|
| 13 |
-
"black-forest-labs/FLUX.1-schnell",
|
| 14 |
-
name="image_generator",
|
| 15 |
-
description="Generate an image from a prompt"
|
| 16 |
-
)
|
| 17 |
|
| 18 |
@tool
|
| 19 |
def search_web_myway(query:str)-> str: #it's import to specify the return type
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool, tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
@tool
|
| 14 |
def search_web_myway(query:str)-> str: #it's import to specify the return type
|