Hmd6919 commited on
Commit
4717d11
·
verified ·
1 Parent(s): 71a709b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  try:
3
  from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
4
  except ImportError:
 
1
 
2
+ import subprocess
3
+ import sys
4
+
5
+ # 1. Force-install the latest library if the import fails
6
  try:
7
  from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
8
  except ImportError: