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

Update app.py

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