Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,7 @@ from pandasai.llm.starcoder import Starcoder
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import gradio as gr
|
7 |
|
8 |
-
|
9 |
-
return x.figure
|
10 |
title='Plot'
|
11 |
# Define List of Models
|
12 |
|
@@ -36,6 +35,7 @@ with gr.Blocks(title=title) as demo:
|
|
36 |
<h1 style='text-align: center'>Plot</h1>
|
37 |
</div>
|
38 |
''')
|
39 |
-
o1=gr.Plot()
|
40 |
-
|
41 |
-
|
|
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import gradio as gr
|
7 |
|
8 |
+
|
|
|
9 |
title='Plot'
|
10 |
# Define List of Models
|
11 |
|
|
|
35 |
<h1 style='text-align: center'>Plot</h1>
|
36 |
</div>
|
37 |
''')
|
38 |
+
o1=gr.Plot(response.figure)
|
39 |
+
demo.launch()
|
40 |
+
|
41 |
+
|