changxin commited on
Commit
593ca72
·
1 Parent(s): 3395f5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 ax.get_figure()
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>图表渲染测试")