changxin commited on
Commit
da678cf
·
1 Parent(s): 7ea9db9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -46,23 +46,23 @@ with demo:
46
  with gr.TabItem("pd_bar"):
47
  pd_button=gr.Button("pd_bar>>")
48
  pd_output=gr.Plot(label="pd_chart1")
49
- pd_button.click(pd_bar, inputs=[], outputs=pd_output)
50
  with gr.TabItem("plt_line"):
51
  plt_button=gr.Button("plt_line>>")
52
  plt_output=gr.Plot(label="plt_chart")
53
- plt_button.click(plt_line, inputs=[], outputs=plt_output)
54
  with gr.TabItem("pd_plotly"):
55
  plotly_button=gr.Button("pd_plotly>>")
56
  plotly_output=gr.Plot(label="plotly_chart")
57
- plotly_button.click(pd_plotly, inputs=[], outputs=plotly_output)
58
  with gr.TabItem("pd_bokeh"):
59
  bokeh_button=gr.Button("pd_bokeh>>")
60
  bokeh_output=gr.File(label="bokeh_chart")
61
- bokeh_button.click(pd_bokeh, inputs=[], outputs=bokeh_output)
62
  with gr.TabItem("pyecharts"):
63
  ehc_button=gr.Button("pyecharts>>")
64
  ehc_output=gr.File(label="pyecharts_chart")
65
- ehc_button.click(pyecharts1, inputs=[], outputs=ehc_output)
66
  # with gr.TabItem("pyg2plot"):
67
  # pyg2_button=gr.Button("pyg2plot>>")
68
  # pyg2_output=gr.Plot(label="pyg2plot_chart")
 
46
  with gr.TabItem("pd_bar"):
47
  pd_button=gr.Button("pd_bar>>")
48
  pd_output=gr.Plot(label="pd_chart1")
49
+ pd_button.click(pd_bar, inputs=[], outputs=pd_output,api_name='pd_bar')
50
  with gr.TabItem("plt_line"):
51
  plt_button=gr.Button("plt_line>>")
52
  plt_output=gr.Plot(label="plt_chart")
53
+ plt_button.click(plt_line, inputs=[], outputs=plt_output,api_name='plt_line')
54
  with gr.TabItem("pd_plotly"):
55
  plotly_button=gr.Button("pd_plotly>>")
56
  plotly_output=gr.Plot(label="plotly_chart")
57
+ plotly_button.click(pd_plotly, inputs=[], outputs=plotly_output,api_name='pd_plotly')
58
  with gr.TabItem("pd_bokeh"):
59
  bokeh_button=gr.Button("pd_bokeh>>")
60
  bokeh_output=gr.File(label="bokeh_chart")
61
+ bokeh_button.click(pd_bokeh, inputs=[], outputs=bokeh_output,api_name='pd_bokeh')
62
  with gr.TabItem("pyecharts"):
63
  ehc_button=gr.Button("pyecharts>>")
64
  ehc_output=gr.File(label="pyecharts_chart")
65
+ ehc_button.click(pyecharts1, inputs=[], outputs=ehc_output,api_name='pyecharts')
66
  # with gr.TabItem("pyg2plot"):
67
  # pyg2_button=gr.Button("pyg2plot>>")
68
  # pyg2_output=gr.Plot(label="pyg2plot_chart")