Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def pd_bar():
|
|
| 10 |
def pd_line():
|
| 11 |
df = pd.DataFrame({'kc':['yw', 'sx', 'yy'], 'cj':[66, 98, 78]})
|
| 12 |
ax = plt.plot(df['cj'])
|
| 13 |
-
return
|
| 14 |
demo=gr.Blocks()
|
| 15 |
with demo:
|
| 16 |
gr.Markdown("# <center>图表渲染测试")
|
|
|
|
| 10 |
def pd_line():
|
| 11 |
df = pd.DataFrame({'kc':['yw', 'sx', 'yy'], 'cj':[66, 98, 78]})
|
| 12 |
ax = plt.plot(df['cj'])
|
| 13 |
+
return plt
|
| 14 |
demo=gr.Blocks()
|
| 15 |
with demo:
|
| 16 |
gr.Markdown("# <center>图表渲染测试")
|