Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def pygalc():
|
|
| 84 |
bb=aa.render(is_unicode=True)
|
| 85 |
cc=aa.render_data_uri()
|
| 86 |
aa.render_to_file("test.svg")
|
| 87 |
-
return 'test.svg',bb,cc
|
| 88 |
|
| 89 |
demo=gr.Blocks()
|
| 90 |
with demo:
|
|
@@ -136,7 +136,7 @@ with demo:
|
|
| 136 |
d3_button.click(d3_js, inputs=[], outputs=d3_output,api_name='d3_js')
|
| 137 |
with gr.TabItem("pygal"):
|
| 138 |
pyga_button=gr.Button("pygal>>")
|
| 139 |
-
pyga_output=[gr.File(label="pygal_chart"),gr.Textbox(label="pygal_chart1",lines=10),gr.Textbox(label="pygal_chart2",lines=3)]
|
| 140 |
pyga_button.click(pygalc, inputs=[], outputs=pyga_output,api_name='pygal')
|
| 141 |
|
| 142 |
with gr.TabItem("echarts"):
|
|
|
|
| 84 |
bb=aa.render(is_unicode=True)
|
| 85 |
cc=aa.render_data_uri()
|
| 86 |
aa.render_to_file("test.svg")
|
| 87 |
+
return 'test.svg',bb,cc,bb
|
| 88 |
|
| 89 |
demo=gr.Blocks()
|
| 90 |
with demo:
|
|
|
|
| 136 |
d3_button.click(d3_js, inputs=[], outputs=d3_output,api_name='d3_js')
|
| 137 |
with gr.TabItem("pygal"):
|
| 138 |
pyga_button=gr.Button("pygal>>")
|
| 139 |
+
pyga_output=[gr.File(label="pygal_chart"),gr.Textbox(label="pygal_chart1",lines=10),gr.Textbox(label="pygal_chart2",lines=3),gr.Markdown(label="html渲染")]
|
| 140 |
pyga_button.click(pygalc, inputs=[], outputs=pyga_output,api_name='pygal')
|
| 141 |
|
| 142 |
with gr.TabItem("echarts"):
|