Ahmed235 commited on
Commit
208c168
·
verified ·
1 Parent(s): ff789b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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": f"{predicted_label}"
38
- prediction_2 = "Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}"
39
- prediction_3 = "Summary": 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