Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,4 @@
|
|
1 |
-
import micropip
|
2 |
import asyncio
|
3 |
-
|
4 |
-
async def install_dependencies():
|
5 |
-
await micropip.install(["smolagents", "requests", "pytz", "pyyaml", "beautifulsoup4", "pillow"])
|
6 |
-
|
7 |
-
asyncio.run(install_dependencies())
|
8 |
-
|
9 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
10 |
import datetime
|
11 |
import requests
|
12 |
import pytz
|
@@ -14,6 +6,7 @@ import yaml
|
|
14 |
from bs4 import BeautifulSoup # For web scraping
|
15 |
from PIL import Image # For image processing
|
16 |
from io import BytesIO
|
|
|
17 |
from tools.final_answer import FinalAnswerTool
|
18 |
from Gradio_UI import GradioUI
|
19 |
|
|
|
|
|
1 |
import asyncio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import datetime
|
3 |
import requests
|
4 |
import pytz
|
|
|
6 |
from bs4 import BeautifulSoup # For web scraping
|
7 |
from PIL import Image # For image processing
|
8 |
from io import BytesIO
|
9 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
10 |
from tools.final_answer import FinalAnswerTool
|
11 |
from Gradio_UI import GradioUI
|
12 |
|