sxd3125 commited on
Commit
c35f02a
1 Parent(s): aa6deca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ from pandasai.llm.starcoder import Starcoder
5
  import matplotlib.pyplot as plt
6
  import gradio as gr
7
 
8
- def plot_chey(X):
9
- a,b = X.figure, X.axes
10
  return a
11
 
12
  title='Plot'
@@ -39,7 +39,7 @@ with gr.Blocks(title = heading, theme= 'snehilsanyal/scikit-learn') as demo:
39
 
40
 
41
  button = gr.Button(value = 'submit')
42
- button.click(plot_chey(response), outputs = gr.Plot())
43
 
44
  demo.launch()
45
  """
 
5
  import matplotlib.pyplot as plt
6
  import gradio as gr
7
 
8
+ def plot_chey():
9
+ a,b = response.figure, response.axes
10
  return a
11
 
12
  title='Plot'
 
39
 
40
 
41
  button = gr.Button(value = 'submit')
42
+ button.click(plot_chey, outputs = gr.Plot())
43
 
44
  demo.launch()
45
  """