rameshmoorthy commited on
Commit
a141a8d
1 Parent(s): dd375ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -73,12 +73,14 @@ def generate_report(file, type):
73
  # live=True,
74
  # )
75
  with gr.Blocks() as cluster:
76
- with gr.Row():
77
- file=gr.File(file_types=['.csv', '.xlsx'], label="Upload a CSV or Excel file")
78
- type=gr.Radio(["pandas profiling", "sweetviz"], label="Type of report", info="Explore the data")
79
- btn=gr.Button(value="Download Report")
80
- dwn=gr.File(label="Download CSV")
81
- with gr.Row():
82
- out=gr.HTML()
 
 
83
  btn.click(generate_report,inputs=[file,type],outputs=[dwn,out])
84
  cluster.launch()
 
73
  # live=True,
74
  # )
75
  with gr.Blocks() as cluster:
76
+ with gr.Column():
77
+
78
+ with gr.Row():
79
+ file=gr.File(file_types=['.csv', '.xlsx'], label="Upload a CSV or Excel file")
80
+ type=gr.Radio(["pandas profiling", "sweetviz"], label="Type of report", info="Explore the data")
81
+ btn=gr.Button(value="Download Report")
82
+ dwn=gr.File(label="Download CSV")
83
+ with gr.Row():
84
+ out=gr.HTML()
85
  btn.click(generate_report,inputs=[file,type],outputs=[dwn,out])
86
  cluster.launch()