Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
|
|
8 |
libraries = [
|
9 |
'transformers',
|
10 |
'gradio',
|
11 |
-
'pptx',
|
12 |
]
|
13 |
|
14 |
for library in libraries:
|
@@ -52,7 +52,7 @@ iface = gr.Interface(
|
|
52 |
fn=predict_pptx_content,
|
53 |
inputs=gr.File(type="file", label="Upload PowerPoint (.pptx) file"),
|
54 |
outputs=["text", "text", "text"], # Predicted Label, Evaluation, Summary
|
55 |
-
live=
|
56 |
title="<h1 style='color: lightgreen; text-align: center;'>PPTX Analyzer</h1>",
|
57 |
)
|
58 |
|
|
|
8 |
libraries = [
|
9 |
'transformers',
|
10 |
'gradio',
|
11 |
+
'python-pptx', # Correct name for pptx library
|
12 |
]
|
13 |
|
14 |
for library in libraries:
|
|
|
52 |
fn=predict_pptx_content,
|
53 |
inputs=gr.File(type="file", label="Upload PowerPoint (.pptx) file"),
|
54 |
outputs=["text", "text", "text"], # Predicted Label, Evaluation, Summary
|
55 |
+
live=False, # Change to False for one-time analysis
|
56 |
title="<h1 style='color: lightgreen; text-align: center;'>PPTX Analyzer</h1>",
|
57 |
)
|
58 |
|