FahadAlam commited on
Commit
50b9a9e
1 Parent(s): 1e9698d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -49,10 +49,8 @@ def findCorrelation(dataset, target):
49
  sns.regplot(x=df[keys[2][0]], y=df[target])
50
 
51
  print("\n Fig 4")
52
-
53
- labels = {key[0]: key[1] for key in keys[10]}
54
-
55
- return labels, fig1, fig2, fig3, fig4
56
 
57
- demo = gr.Interface(fn=findCorrelation, inputs=[gr.File(), 'text'], outputs=[gr.Label(), gr.Plot(), gr.Plot(), gr.Plot(), gr.Plot()], title="Find correlation")
58
  demo.launch(debug=True)
 
49
  sns.regplot(x=df[keys[2][0]], y=df[target])
50
 
51
  print("\n Fig 4")
52
+
53
+ return d, fig1, fig2, fig3, fig4
 
 
54
 
55
+ demo = gr.Interface(fn=findCorrelation, inputs=[gr.File(), 'text'], outputs=[gr.Label(num_top_classes = 10), gr.Plot(), gr.Plot(), gr.Plot(), gr.Plot()], title="Find correlation")
56
  demo.launch(debug=True)