Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,9 @@ import gradio as gr
|
|
| 3 |
import ydata_profiling
|
| 4 |
import os
|
| 5 |
|
| 6 |
-
def generate_eda_report(
|
| 7 |
try:
|
| 8 |
-
df = pd.read_csv(
|
| 9 |
except Exception as e:
|
| 10 |
return f"Error reading CSV file: {e}"
|
| 11 |
|
|
@@ -27,7 +27,7 @@ def generate_eda_report(data):
|
|
| 27 |
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=generate_eda_report,
|
| 30 |
-
inputs=gr.File(type="
|
| 31 |
outputs=gr.HTML(label="EDA Report"),
|
| 32 |
title="Effortless Dataset Insights",
|
| 33 |
description="Upload your CSV file and get an instant Exploratory Data Analysis report in HTML format.",
|
|
|
|
| 3 |
import ydata_profiling
|
| 4 |
import os
|
| 5 |
|
| 6 |
+
def generate_eda_report(file_path):
|
| 7 |
try:
|
| 8 |
+
df = pd.read_csv(file_path)
|
| 9 |
except Exception as e:
|
| 10 |
return f"Error reading CSV file: {e}"
|
| 11 |
|
|
|
|
| 27 |
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=generate_eda_report,
|
| 30 |
+
inputs=gr.File(type="filepath", label="Upload your CSV dataset (max 100MB)"),
|
| 31 |
outputs=gr.HTML(label="EDA Report"),
|
| 32 |
title="Effortless Dataset Insights",
|
| 33 |
description="Upload your CSV file and get an instant Exploratory Data Analysis report in HTML format.",
|