Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files
app.py
CHANGED
@@ -21,6 +21,8 @@ def process_url(url, model_name):
|
|
21 |
processed_text = data_prep.process_data(url)
|
22 |
final_scores = model_predict.predict_text(processed_text, model_name)
|
23 |
|
|
|
|
|
24 |
if model_name == 'outcome':
|
25 |
highest_prob_item = max(final_scores, key=lambda x: x['score'])
|
26 |
highest_prob_label = highest_prob_item['outcome']
|
|
|
21 |
processed_text = data_prep.process_data(url)
|
22 |
final_scores = model_predict.predict_text(processed_text, model_name)
|
23 |
|
24 |
+
print(f"Final Scores: {final_scores}") # Debug statement
|
25 |
+
|
26 |
if model_name == 'outcome':
|
27 |
highest_prob_item = max(final_scores, key=lambda x: x['score'])
|
28 |
highest_prob_label = highest_prob_item['outcome']
|