Ahmed235 commited on
Commit
48b97ad
·
verified ·
1 Parent(s): 93595ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def predict_pptx_content(file_path):
25
 
26
  predicted_label = result[0]['label']
27
  predicted_probability = result[0]['score']
28
- summary = summarizer(extracted_text, max_length=80, min_length=30, do_sample=False)[0]['summary_text']
29
  prediction = {
30
  "Summary": summary,
31
  "Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}",
 
25
 
26
  predicted_label = result[0]['label']
27
  predicted_probability = result[0]['score']
28
+ summary = summarizer(extracted_text, max_length=222, min_length=30, do_sample=False)[0]['summary_text']
29
  prediction = {
30
  "Summary": summary,
31
  "Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}",