gabzer commited on
Commit
f9311e6
·
verified ·
1 Parent(s): 9570ac3

Freeze dependencies to avoid backward compatibility issues

Browse files

When launching the space, I ran into the following `Runtime error`:
```
Exit code: 1. Reason: Traceback (most recent call last):
File "/home/user/app/app.py", line 3, in <module>
from smolagents import GradioUI, CodeAgent, HfApiModel
ImportError: cannot import name 'HfApiModel' from 'smolagents' (/usr/local/lib/python3.10/site-packages/smolagents/__init__.py)
```

Freezing all libraries' versions works for me. Please see my space [here](https://huggingface.co/spaces/gabzer/Unit_3_Agentic_RAG).

Files changed (1) hide show
  1. requirements.txt +5 -5
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
- datasets
2
- smolagents
3
- langchain-community
4
- rank_bm25
5
- duckduckgo-search
 
1
+ datasets==3.1.0
2
+ smolagents==1.18
3
+ langchain-community==0.3.29
4
+ rank-bm25==0.2.2
5
+ duckduckgo-search==8.1.1