rameshmoorthy
commited on
Commit
•
7a75289
1
Parent(s):
71c9026
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import pandas as pd
|
2 |
-
import
|
3 |
import gradio as gr
|
4 |
from pydantic_settings import BaseSettings
|
5 |
|
6 |
def generate_report(file):
|
7 |
df = pd.read_csv(file) if file.name.endswith(".csv") else pd.read_excel(file)
|
8 |
-
report =
|
9 |
return report.to_html()
|
10 |
|
11 |
iface = gr.Interface(
|
|
|
1 |
import pandas as pd
|
2 |
+
import ydata_profiling
|
3 |
import gradio as gr
|
4 |
from pydantic_settings import BaseSettings
|
5 |
|
6 |
def generate_report(file):
|
7 |
df = pd.read_csv(file) if file.name.endswith(".csv") else pd.read_excel(file)
|
8 |
+
report = ydata_profiling.ProfileReport(df)
|
9 |
return report.to_html()
|
10 |
|
11 |
iface = gr.Interface(
|