Jacaranda commited on
Commit
7ba763e
·
1 Parent(s): c374f75

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,8 +40,8 @@ def predict_batch_from_csv(input_file, output_file):
40
  return "Prediction completed. Results saved to " + output_file
41
 
42
  # Define the Gradio interface
43
- input_csv = gr.inputs.File(label="Input CSV", type="file", extension=['csv'])
44
- output_csv = gr.outputs.File(label="Output CSV", type="file", default="./output.csv")
45
 
46
  # Define the prediction function for the Gradio interface
47
  def predict_interface(input_file):
 
40
  return "Prediction completed. Results saved to " + output_file
41
 
42
  # Define the Gradio interface
43
+ input_csv = gr.inputs.File(label="Input CSV", type="file")
44
+ output_csv = gr.outputs.File(label="Output CSV")
45
 
46
  # Define the prediction function for the Gradio interface
47
  def predict_interface(input_file):