Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def predict_pptx_content(file_path):
|
|
47 |
# Define the Gradio interface
|
48 |
iface = gr.Interface(
|
49 |
fn=predict_pptx_content,
|
50 |
-
inputs=gr.File(type="
|
51 |
outputs=["text", "text"], # Predicted Label, Evaluation, Summary
|
52 |
live=False, # Change to False for one-time analysis
|
53 |
title="<h1 style='color: lightgreen; text-align: center;'>PPTX Analyzer</h1>",
|
|
|
47 |
# Define the Gradio interface
|
48 |
iface = gr.Interface(
|
49 |
fn=predict_pptx_content,
|
50 |
+
inputs=gr.File(type="filepath", label="Upload PowerPoint (.pptx) file"),
|
51 |
outputs=["text", "text"], # Predicted Label, Evaluation, Summary
|
52 |
live=False, # Change to False for one-time analysis
|
53 |
title="<h1 style='color: lightgreen; text-align: center;'>PPTX Analyzer</h1>",
|