Spaces:
Runtime error

johan frachon commited on
Commit
55e009a
·
1 Parent(s): db81b0a

config: activation mode mock final

Browse files
Files changed (2) hide show
  1. requirements.txt +3 -19
  2. src/streamlit/config.py +2 -4
requirements.txt CHANGED
@@ -1,27 +1,11 @@
1
- streamlit
2
  pandas
3
  numpy
4
  Pillow
5
  scikit-learn
6
  xgboost
7
- torch
8
- torchvision
9
- transformers
10
- graphviz
11
- joblib
12
- plotly
13
- matplotlib
14
- seaborn
15
- timm
16
- openpyxl
17
- streamlit
18
- pandas
19
- numpy
20
- Pillow
21
- scikit-learn
22
- xgboost
23
- torch
24
- torchvision
25
  transformers
26
  timm
27
  opencv-python-headless
 
1
+ streamlit==1.31.0
2
  pandas
3
  numpy
4
  Pillow
5
  scikit-learn
6
  xgboost
7
+ torch --index-url https://download.pytorch.org/whl/cpu
8
+ torchvision --index-url https://download.pytorch.org/whl/cpu
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  transformers
10
  timm
11
  opencv-python-headless
src/streamlit/config.py CHANGED
@@ -46,9 +46,7 @@ APP_CONFIG = {
46
 
47
  # --- CONFIG MODÈLE ---
48
  MODEL_CONFIG = {
49
- "use_mock": False,
50
- # Poids Fusion : 30% Texte / 70% Image
51
- "fusion_weights_global": {"text": 0.3, "image": 0.7},
52
- # Poids Voting Image : DINO(4) / XGB(2) / Eff(1)
53
  "voting_weights": {"dino": 4.0, "xgb": 2.0, "effnet": 1.0}
54
  }
 
46
 
47
  # --- CONFIG MODÈLE ---
48
  MODEL_CONFIG = {
49
+ "use_mock": True, # INDISPENSABLE POUR LE CLOUD
50
+ "fusion_weights_global": {"text": 0.5, "image": 0.5},
 
 
51
  "voting_weights": {"dino": 4.0, "xgb": 2.0, "effnet": 1.0}
52
  }