Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,7 @@ import io
|
|
4 |
|
5 |
def read_csv(csv_file):
|
6 |
# Convert uploaded file data to pandas DataFrame
|
7 |
-
|
8 |
-
df = pd.read_csv(io.StringIO(content))
|
9 |
return df
|
10 |
|
11 |
iface = gr.Interface(fn=read_csv,
|
|
|
4 |
|
5 |
def read_csv(csv_file):
|
6 |
# Convert uploaded file data to pandas DataFrame
|
7 |
+
df = pd.read_csv(csv_file.name)
|
|
|
8 |
return df
|
9 |
|
10 |
iface = gr.Interface(fn=read_csv,
|