ahmedelgendy commited on
Commit
3d60a28
·
verified ·
1 Parent(s): 32548b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import micropip
2
- await micropip.install(["smolagents", "requests", "pytz", "pyyaml", "beautifulsoup4", "pillow"])
 
 
 
 
 
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