Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def predict_pptx_content(file_path):
|
|
55 |
# Define the Gradio interface
|
56 |
iface = gr.Interface(
|
57 |
fn=predict_pptx_content,
|
58 |
-
inputs=gr.File(type="
|
59 |
outputs=["text", "text"], # Predicted Label, Evaluation
|
60 |
live=False, # Change to True for one-time analysis
|
61 |
title="<h1 style='color: lightgreen; text-align: center;'>HackTalk Analyzer</h1>",
|
|
|
55 |
# Define the Gradio interface
|
56 |
iface = gr.Interface(
|
57 |
fn=predict_pptx_content,
|
58 |
+
inputs=gr.File(type="filepath", label="Upload PowerPoint (.pptx) file"),
|
59 |
outputs=["text", "text"], # Predicted Label, Evaluation
|
60 |
live=False, # Change to True for one-time analysis
|
61 |
title="<h1 style='color: lightgreen; text-align: center;'>HackTalk Analyzer</h1>",
|