sxd3125 commited on
Commit
8a30c60
1 Parent(s): 9762552

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -5,8 +5,7 @@ from pandasai.llm.starcoder import Starcoder
5
  import matplotlib.pyplot as plt
6
  import gradio as gr
7
 
8
- def make_plot(x):
9
- return x.figure
10
  title='Plot'
11
  # Define List of Models
12
 
@@ -36,6 +35,7 @@ with gr.Blocks(title=title) as demo:
36
  <h1 style='text-align: center'>Plot</h1>
37
  </div>
38
  ''')
39
- o1=gr.Plot()
40
- btn = gr.Button(value = 'Submit')
41
- btn.click(make_plot,inputs=[btn],outputs=[o1])
 
 
5
  import matplotlib.pyplot as plt
6
  import gradio as gr
7
 
8
+
 
9
  title='Plot'
10
  # Define List of Models
11
 
 
35
  <h1 style='text-align: center'>Plot</h1>
36
  </div>
37
  ''')
38
+ o1=gr.Plot(response.figure)
39
+ demo.launch()
40
+
41
+