Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|