Ahmed235 commited on
Commit
b5ca66f
·
verified ·
1 Parent(s): 354543e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -35,12 +35,11 @@ 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 = {
38
- "Predicted_Label": predicted_label,
39
- "Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}",
40
- "Summary": summary,
41
-
42
-
43
- }
44
 
45
  return prediction
46
 
 
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 = {
38
+ "Predicted_Label": f"{predicted_label}\n",
39
+ "Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}\n",
40
+ "Summary": summary,
41
+ }
42
+
 
43
 
44
  return prediction
45