Update app.py
Browse files
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="
|
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."
|