Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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.
|
| 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
|