Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ if st.button("Predict"):
|
|
30 |
# Convert to numpy array if necessary
|
31 |
predicted_scores = predictions.numpy()
|
32 |
|
33 |
-
# Apply uniform reduction (e.g., reduce by
|
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 an additional reduction to the overall score if needed
|
44 |
-
additional_reduction =
|
45 |
overall_score_index = len(normalized_scores) - 1
|
46 |
normalized_scores[overall_score_index] = max(normalized_scores[overall_score_index] - additional_reduction, 0)
|
47 |
|
|
|
30 |
# Convert to numpy array if necessary
|
31 |
predicted_scores = predictions.numpy()
|
32 |
|
33 |
+
# Apply a significant uniform reduction (e.g., reduce by 50%)
|
34 |
+
reduction_factor = 0.4 # Reduce scores by 60%
|
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 an additional reduction to the overall score if needed
|
44 |
+
additional_reduction = 2.5 # Further reduce overall score
|
45 |
overall_score_index = len(normalized_scores) - 1
|
46 |
normalized_scores[overall_score_index] = max(normalized_scores[overall_score_index] - additional_reduction, 0)
|
47 |
|