rameshmoorthy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -127,6 +127,7 @@ def generate_report(file, type):
|
|
127 |
save_plot_dir="plots"
|
128 |
)
|
129 |
except Exception as e:
|
|
|
130 |
print(e)
|
131 |
print('Exception during Autoviz')
|
132 |
|
@@ -154,7 +155,7 @@ def generate_report(file, type):
|
|
154 |
|
155 |
with gr.Blocks() as cluster:
|
156 |
with gr.Column():
|
157 |
-
|
158 |
with gr.Row():
|
159 |
file=gr.File(file_types=['.csv', '.xlsx'], label="Upload a CSV or Excel file")
|
160 |
btn=gr.Button(value="Download Report")
|
@@ -162,12 +163,10 @@ with gr.Blocks() as cluster:
|
|
162 |
with gr.Row():
|
163 |
|
164 |
|
165 |
-
gr.HTML(value="""<
|
166 |
out1=gr.File(label="Download CSV")
|
167 |
-
gr.HTML(value="""<
|
168 |
out2=gr.File(label="Download CSV")
|
169 |
-
gr.HTML(value="""<h1 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">SWEETVIZ REPORT</h1>""")
|
170 |
-
out3=gr.File(label="Download CSV")
|
171 |
with gr.Column():
|
172 |
gr.Markdown("***Uploaded File***")
|
173 |
var=gr.HTML()
|
@@ -178,5 +177,5 @@ with gr.Blocks() as cluster:
|
|
178 |
with gr.Column():
|
179 |
gr.Markdown("#Columns Analysis")
|
180 |
dataframe2=gr.Dataframe()
|
181 |
-
btn.click(generate_report,inputs=[file],outputs=[out1,
|
182 |
cluster.launch()
|
|
|
127 |
save_plot_dir="plots"
|
128 |
)
|
129 |
except Exception as e:
|
130 |
+
dfviz=df
|
131 |
print(e)
|
132 |
print('Exception during Autoviz')
|
133 |
|
|
|
155 |
|
156 |
with gr.Blocks() as cluster:
|
157 |
with gr.Column():
|
158 |
+
gr.HTML(value="""<h1 style="color: #1999FF; text-shadow: 1px 1px 2px #ddd;">EXCEL ANALYSIS AND INSIGHTS</h1>""")
|
159 |
with gr.Row():
|
160 |
file=gr.File(file_types=['.csv', '.xlsx'], label="Upload a CSV or Excel file")
|
161 |
btn=gr.Button(value="Download Report")
|
|
|
163 |
with gr.Row():
|
164 |
|
165 |
|
166 |
+
gr.HTML(value="""<h2 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">PANDAS REPORT</h2>""")
|
167 |
out1=gr.File(label="Download CSV")
|
168 |
+
gr.HTML(value="""<h2 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">SWEETVIZ REPORT</h2>""")
|
169 |
out2=gr.File(label="Download CSV")
|
|
|
|
|
170 |
with gr.Column():
|
171 |
gr.Markdown("***Uploaded File***")
|
172 |
var=gr.HTML()
|
|
|
177 |
with gr.Column():
|
178 |
gr.Markdown("#Columns Analysis")
|
179 |
dataframe2=gr.Dataframe()
|
180 |
+
btn.click(generate_report,inputs=[file],outputs=[out1,out2,var,dataframe1,dataframe2])
|
181 |
cluster.launch()
|