pratikshahp commited on
Commit
1aaabde
·
verified ·
1 Parent(s): b7a73b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def read_csv(file):
10
  # Create the Gradio interface
11
  interface = gr.Interface(
12
  fn=read_csv,
13
- inputs=gr.File(label="Upload CSV File", type="file"),
14
  outputs="dataframe", # Display the content as a dataframe
15
  title="CSV Viewer",
16
  description="Upload a CSV file, and the app will display its content."
 
10
  # Create the Gradio interface
11
  interface = gr.Interface(
12
  fn=read_csv,
13
+ inputs=gr.File(label="Upload CSV File", type="filepath"), # Corrected type to 'filepath'
14
  outputs="dataframe", # Display the content as a dataframe
15
  title="CSV Viewer",
16
  description="Upload a CSV file, and the app will display its content."