stzhao commited on
Commit
c24b5ac
·
verified ·
1 Parent(s): a80ebbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def process_pptx(pptx_file):
112
  iface = gr.Interface(
113
  fn=process_pptx,
114
  inputs=gr.File(label="Upload PowerPoint File"),
115
- outputs=[gr.Textbox(label="JSON Output"), gr.Gallery(label="Extracted Images"), gr.Image(label="PPT Preview")],
116
  title="PowerPoint to JSON Converter",
117
  description="Upload a PowerPoint file to convert its structure to JSON and display extracted images."
118
  )
 
112
  iface = gr.Interface(
113
  fn=process_pptx,
114
  inputs=gr.File(label="Upload PowerPoint File"),
115
+ outputs=[gr.Textbox(label="JSON Output"), gr.Gallery(label="Extracted Images"), gr.Image(type="filepath", label="PPT Preview")],
116
  title="PowerPoint to JSON Converter",
117
  description="Upload a PowerPoint file to convert its structure to JSON and display extracted images."
118
  )