Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def predict_pptx_content(file_path):
|
|
26 |
|
27 |
prediction = {
|
28 |
"Predicted Label": predicted_label,
|
|
|
29 |
}
|
30 |
|
31 |
return prediction
|
@@ -39,7 +40,7 @@ def predict_pptx_content(file_path):
|
|
39 |
iface = gr.Interface(
|
40 |
fn=predict_pptx_content,
|
41 |
inputs=gr.File(type="filepath", label="Upload PowerPoint (.pptx) file"),
|
42 |
-
outputs=["text"], # Predicted Label, Evaluation
|
43 |
live=False, # Change to True for one-time analysis
|
44 |
title="<h1 style='color: lightgreen; text-align: center;'>HackTalk Analyzer</h1>",
|
45 |
)
|
|
|
26 |
|
27 |
prediction = {
|
28 |
"Predicted Label": predicted_label,
|
29 |
+
"Evaluation": f"Evaluate the topic according to {predicted_label} is: {predicted_probability}",
|
30 |
}
|
31 |
|
32 |
return prediction
|
|
|
40 |
iface = gr.Interface(
|
41 |
fn=predict_pptx_content,
|
42 |
inputs=gr.File(type="filepath", label="Upload PowerPoint (.pptx) file"),
|
43 |
+
outputs=["text", "text"], # Predicted Label, Evaluation
|
44 |
live=False, # Change to True for one-time analysis
|
45 |
title="<h1 style='color: lightgreen; text-align: center;'>HackTalk Analyzer</h1>",
|
46 |
)
|