rameshmoorthy commited on
Commit
15a4a02
·
verified ·
1 Parent(s): f06c07a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def generate_report(file,type):
17
 
18
 
19
 
20
- iface = 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,4 +26,15 @@ iface = gr.Interface(
26
  live=True,
27
  )
28
 
29
- iface.launch(share=True)
 
 
 
 
 
 
 
 
 
 
 
 
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)