Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
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(
|
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 |
|