KevSun commited on
Commit
42ca34d
·
verified ·
1 Parent(s): 30748c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ if st.button("Predict"):
31
  predicted_scores = predictions.numpy()
32
 
33
  # Apply a significant uniform reduction (e.g., reduce by 80%)
34
- reduction_factor = 0.4 # Reduce scores by 80%
35
  adjusted_scores = predicted_scores * reduction_factor
36
 
37
  # Ensure scores do not go below zero
@@ -41,7 +41,7 @@ if st.button("Predict"):
41
  normalized_scores = (adjusted_scores / adjusted_scores.max()) * 9 # Scale to 9
42
 
43
  # Apply additional reductions to all scores
44
- additional_reduction = 1.5 # Further reduce all scores
45
  normalized_scores = np.maximum(normalized_scores - additional_reduction, 0)
46
 
47
  # Round the scores
 
31
  predicted_scores = predictions.numpy()
32
 
33
  # Apply a significant uniform reduction (e.g., reduce by 80%)
34
+ reduction_factor = 0.2 # Reduce scores by 80%
35
  adjusted_scores = predicted_scores * reduction_factor
36
 
37
  # Ensure scores do not go below zero
 
41
  normalized_scores = (adjusted_scores / adjusted_scores.max()) * 9 # Scale to 9
42
 
43
  # Apply additional reductions to all scores
44
+ additional_reduction = 1.9 # Further reduce all scores
45
  normalized_scores = np.maximum(normalized_scores - additional_reduction, 0)
46
 
47
  # Round the scores