Spaces:
Runtime error
Runtime error
Commit ·
e0f018b
1
Parent(s): bb85ea5
newone
Browse files- requirements.txt +2 -2
- setup.sh +4 -0
requirements.txt
CHANGED
|
@@ -4,7 +4,7 @@ flask==2.2.3
|
|
| 4 |
flask-cors==3.1.1
|
| 5 |
pyngrok==5.2.0
|
| 6 |
scikit-learn==1.2.2
|
| 7 |
-
torch==2.1.0
|
| 8 |
transformers==4.33.0
|
| 9 |
-
surprise==0.
|
| 10 |
gunicorn==20.1.0
|
|
|
|
| 4 |
flask-cors==3.1.1
|
| 5 |
pyngrok==5.2.0
|
| 6 |
scikit-learn==1.2.2
|
| 7 |
+
torch==2.1.0+cpu # Use the appropriate version based on the Hugging Face environment (adjust if needed)
|
| 8 |
transformers==4.33.0
|
| 9 |
+
scikit-surprise==0.1.0 # Compatible version of surprise
|
| 10 |
gunicorn==20.1.0
|
setup.sh
CHANGED
|
@@ -1,3 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
pip install -r requirements.txt
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Ensure pip is up to date
|
| 4 |
+
pip install --upgrade pip
|
| 5 |
+
|
| 6 |
+
# Install required dependencies
|
| 7 |
pip install -r requirements.txt
|