Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
import micropip
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
5 |
import datetime
|
|
|
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
|