Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def generate_report(file,type):
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
-
|
| 21 |
generate_report,
|
| 22 |
[gr.File(file_types=['.csv','.xlsx'], label="Upload a CSV or Excel file"),
|
| 23 |
gr.Radio(["pandas profiling", "sweetviz"], label="Type of report", info="Explore the data")],
|
|
@@ -26,4 +26,15 @@ iface = gr.Interface(
|
|
| 26 |
live=True,
|
| 27 |
)
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+
profile = gr.Interface(
|
| 21 |
generate_report,
|
| 22 |
[gr.File(file_types=['.csv','.xlsx'], label="Upload a CSV or Excel file"),
|
| 23 |
gr.Radio(["pandas profiling", "sweetviz"], label="Type of report", info="Explore the data")],
|
|
|
|
| 26 |
live=True,
|
| 27 |
)
|
| 28 |
|
| 29 |
+
cluster = gr.Interface(
|
| 30 |
+
generate_report,
|
| 31 |
+
[gr.File(file_types=['.csv','.xlsx'], label="Upload a CSV or Excel file"),
|
| 32 |
+
gr.Radio(["pandas profiling", "sweetviz"], label="Type of report", info="Explore the data")],
|
| 33 |
+
gr.HTML(label="Data profile Report"),
|
| 34 |
+
title="Excel sheet Profiling Report",
|
| 35 |
+
live=True,
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
demo = gr.TabbedInterface([cluster, profile], ["Product clustering", "Data Exploration"])
|
| 39 |
+
|
| 40 |
+
demo.launch(share=True)
|