Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,10 @@ def predict_pptx_content(file_path):
|
|
34 |
predicted_label = result[0]['label']
|
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 = "Predicted_Label
|
38 |
-
prediction_2 = "Evaluation
|
39 |
-
prediction_3 = "Summary
|
|
|
40 |
|
41 |
|
42 |
return prediction_1,prediction_2,prediction_3
|
|
|
34 |
predicted_label = result[0]['label']
|
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 = "Predicted_Label: " + str(predicted_label)
|
38 |
+
prediction_2 = "Evaluation: Evaluate the topic according to " + str(predicted_label) + " is: " + str(predicted_probability)
|
39 |
+
prediction_3 = "Summary: " + str(summary)
|
40 |
+
|
41 |
|
42 |
|
43 |
return prediction_1,prediction_2,prediction_3
|