Freeze dependencies to avoid backward compatibility issues

#17
by gabzer - opened

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.

Hugging Face Agents Course org

Thanks @gabzer ! I applied #14 for now, feel free to reopen if it breaks again!

pcuenq changed pull request status to closed

Thanks @pcuenq ! Will keep an eye on it.

Sign up or log in to comment