Update app.py
Browse files
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=
|
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}",
|