ftx7go commited on
Commit
bf2a9d9
·
verified ·
1 Parent(s): d1ac33a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,9 +3,9 @@ import gradio as gr
3
  import ydata_profiling
4
  import os
5
 
6
- def generate_eda_report(data):
7
  try:
8
- df = pd.read_csv(data.name)
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="file", 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.",
 
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.",