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