sxd3125 commited on
Commit
8ab30ec
1 Parent(s): 7749c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -5,9 +5,12 @@ from pandasai.llm.starcoder import Starcoder
5
  import matplotlib.pyplot as plt
6
  import gradio as gr
7
 
8
- def plot_chey(X):
9
- fig,ax = X.figure, X.axes
10
- return fig
 
 
 
11
 
12
  title='Plot'
13
  # Define List of Models
@@ -40,7 +43,7 @@ with gr.Blocks(title=title) as demo:
40
  ''')
41
  button = gr.Button(value = 'nokku')
42
 
43
- button.click(plot_chey(response), outputs = gr.Plot())
44
  demo.launch()
45
 
46
 
 
5
  import matplotlib.pyplot as plt
6
  import gradio as gr
7
 
8
+ def plot_chey():
9
+ a,b = plt.subplots()
10
+
11
+ b.xlabel('two rs')
12
+ b.title('hada')
13
+ return a
14
 
15
  title='Plot'
16
  # Define List of Models
 
43
  ''')
44
  button = gr.Button(value = 'nokku')
45
 
46
+ button.click(plot_chey(), outputs = gr.Plot())
47
  demo.launch()
48
 
49