rameshmoorthy
commited on
Update app.py
Browse files
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.
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
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()
|