Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
9 |
-
a,b =
|
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
|
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 |
"""
|