Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,22 @@ with gr.Blocks() as demo:
|
|
51 |
with gr.Column():
|
52 |
inp = gr.Textbox(placeholder="Enter the target feature name")
|
53 |
btn = gr.Button("Find Correlation")
|
|
|
|
|
|
|
|
|
54 |
with gr.Row():
|
55 |
labels = gr.Label(num_top_classes = 10)
|
|
|
|
|
|
|
|
|
56 |
with gr.Row():
|
57 |
fig1 = gr.Plot()
|
|
|
|
|
|
|
|
|
58 |
with gr.Row():
|
59 |
with gr.Column():
|
60 |
fig2 = gr.Plot()
|
@@ -64,7 +76,7 @@ with gr.Blocks() as demo:
|
|
64 |
fig4 = gr.Plot()
|
65 |
with gr.Row():
|
66 |
gr.Examples(
|
67 |
-
examples = [["boston.csv", "MEDV"]], fn=findCorrelation, inputs=[file, inp], outputs=[labels, fig1, fig2, fig3, fig4])
|
68 |
btn.click( fn=findCorrelation, inputs=[file, inp], outputs=[labels, fig1, fig2, fig3, fig4])
|
69 |
|
70 |
demo.launch()
|
|
|
51 |
with gr.Column():
|
52 |
inp = gr.Textbox(placeholder="Enter the target feature name")
|
53 |
btn = gr.Button("Find Correlation")
|
54 |
+
gr.Markdown(
|
55 |
+
"""
|
56 |
+
### Correlation with other numeric features
|
57 |
+
""")
|
58 |
with gr.Row():
|
59 |
labels = gr.Label(num_top_classes = 10)
|
60 |
+
gr.Markdown(
|
61 |
+
"""
|
62 |
+
### HeatMap
|
63 |
+
""")
|
64 |
with gr.Row():
|
65 |
fig1 = gr.Plot()
|
66 |
+
gr.Markdown(
|
67 |
+
"""
|
68 |
+
### Plot of top 3 correlated features
|
69 |
+
""")
|
70 |
with gr.Row():
|
71 |
with gr.Column():
|
72 |
fig2 = gr.Plot()
|
|
|
76 |
fig4 = gr.Plot()
|
77 |
with gr.Row():
|
78 |
gr.Examples(
|
79 |
+
examples = [["boston.csv", "MEDV"]], fn=findCorrelation, inputs=[file, inp], outputs=[labels, fig1, fig2, fig3, fig4], cache_examples=True)
|
80 |
btn.click( fn=findCorrelation, inputs=[file, inp], outputs=[labels, fig1, fig2, fig3, fig4])
|
81 |
|
82 |
demo.launch()
|