Update app.py
Browse files
app.py
CHANGED
@@ -35,20 +35,18 @@ def predict_pptx_content(file_path):
|
|
35 |
predicted_probability = result[0]['score']
|
36 |
summary = summarizer(extracted_text, max_length=80, min_length=30, do_sample=False)[0]['summary_text']
|
37 |
prediction_1 = {
|
38 |
-
"Predicted_Label": f"{predicted_label}
|
39 |
-
|
40 |
-
"Summary": summary,
|
41 |
}
|
42 |
|
43 |
prediction_2 = {
|
44 |
-
|
45 |
-
"Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}
|
46 |
-
|
47 |
}
|
48 |
prediction_3= {
|
49 |
-
|
50 |
-
"
|
51 |
-
"Summary": summary,
|
52 |
}
|
53 |
|
54 |
return prediction_1,prediction_2,prediction_3
|
|
|
35 |
predicted_probability = result[0]['score']
|
36 |
summary = summarizer(extracted_text, max_length=80, min_length=30, do_sample=False)[0]['summary_text']
|
37 |
prediction_1 = {
|
38 |
+
"Predicted_Label": f"{predicted_label}"
|
39 |
+
|
|
|
40 |
}
|
41 |
|
42 |
prediction_2 = {
|
43 |
+
|
44 |
+
"Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}"
|
45 |
+
|
46 |
}
|
47 |
prediction_3= {
|
48 |
+
|
49 |
+
"Summary": summary
|
|
|
50 |
}
|
51 |
|
52 |
return prediction_1,prediction_2,prediction_3
|