dhani10 commited on
Commit
dd69128
·
verified ·
1 Parent(s): 053265f

Fix: scikit-learn 1.4.2 for compatibility

Browse files
Files changed (1) hide show
  1. requirements.txt +15 -11
requirements.txt CHANGED
@@ -1,11 +1,15 @@
1
- streamlit==1.39.0
2
- pandas==2.2.2
3
- numpy==1.26.4
4
- scikit-learn==1.4.2 # Downgraded for Python 3.9 compatibility
5
- scipy==1.11.4 # Compatible with Python 3.9
6
- joblib==1.4.2
7
- huggingface_hub==0.25.1
8
- datasets==2.16.1
9
- matplotlib==3.7.0
10
- seaborn==0.12.2
11
- plotly==5.17.0
 
 
 
 
 
1
+ # This is for your DEPLOYED APPLICATION
2
+ # Located at: HF Space root directory
3
+ # Used by: Docker container when building your app
4
+ from huggingface_hub import HfApi, login
5
+
6
+ login(token=HF_TOKEN)
7
+ api = HfApi(token=HF_TOKEN)
8
+
9
+ api.upload_file(
10
+ path_or_fileobj="requirements.txt", # Your updated file
11
+ path_in_repo="requirements.txt",
12
+ repo_id="dhani10/engine-condition-app",
13
+ repo_type="space",
14
+ commit_message="Fix: scikit-learn 1.4.2 for compatibility"
15
+ )