iamrobotbear commited on
Commit
ea380a0
·
1 Parent(s): f51ad44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -138,7 +138,8 @@ def process_images_and_statements(image):
138
  # Gradio interface
139
  image_input = gr.inputs.Image()
140
  output_df = gr.outputs.Dataframe(type="pandas", label="Results") # <--- Use "pandas" type for DataFrame output
141
- output_csv = gr.outputs.File(label="Download CSV") # <--- Added a new output for the downloadable CSV file
 
142
 
143
  iface = gr.Interface(
144
  fn=process_images_and_statements,
 
138
  # Gradio interface
139
  image_input = gr.inputs.Image()
140
  output_df = gr.outputs.Dataframe(type="pandas", label="Results") # <--- Use "pandas" type for DataFrame output
141
+ output_csv = gr.outputs.File(label="Download CSV", type="csv", default="Empty file")
142
+
143
 
144
  iface = gr.Interface(
145
  fn=process_images_and_statements,