Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,8 @@ def predict_score(essay_text, gender, race_ethnicity, disability, disadvantaged,
|
|
48 |
# Predict from both models
|
49 |
ridge_score = ridge.predict(full_input)[0]
|
50 |
lgb_score = lgb_model.predict(full_input)[0]
|
51 |
-
final_score = round((0.5 * ridge_score + 0.5 * lgb_score), 2)
|
|
|
52 |
return final_score
|
53 |
|
54 |
# Gradio UI
|
|
|
48 |
# Predict from both models
|
49 |
ridge_score = ridge.predict(full_input)[0]
|
50 |
lgb_score = lgb_model.predict(full_input)[0]
|
51 |
+
#final_score = round((0.5 * ridge_score + 0.5 * lgb_score), 2)
|
52 |
+
final_score = (ridge_pred + lgb_pred) / 2
|
53 |
return final_score
|
54 |
|
55 |
# Gradio UI
|