Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -534,14 +534,14 @@ try:
|
|
| 534 |
fig1.write_image("ascn_pie1.pdf")
|
| 535 |
fig1.write_image("ascn_pie1.svg")
|
| 536 |
with open('ascn_pie1.pdf') as f:
|
| 537 |
-
col1.
|
| 538 |
"Save As PDF",
|
| 539 |
f,
|
| 540 |
'sonogram-voice-category-'+currPlainName+'.pdf',
|
| 541 |
key='download-pdf1',
|
| 542 |
)
|
| 543 |
with open('ascn_pie1.svg') as f:
|
| 544 |
-
col2.
|
| 545 |
"Save As SVG",
|
| 546 |
f,
|
| 547 |
'sonogram-voice-category-'+currPlainName+'.svg',
|
|
@@ -570,14 +570,14 @@ try:
|
|
| 570 |
fig2.write_image("ascn_pie2.pdf")
|
| 571 |
fig2.write_image("ascn_pie2.svg")
|
| 572 |
with open('ascn_pie2.pdf') as f:
|
| 573 |
-
col1.
|
| 574 |
"Save As PDF",
|
| 575 |
f,
|
| 576 |
'sonogram-speaker-percent-'+currPlainName+'.pdf',
|
| 577 |
key='download-pdf2',
|
| 578 |
)
|
| 579 |
with open('ascn_pie2.svg') as f:
|
| 580 |
-
col2.
|
| 581 |
"Save As SVG",
|
| 582 |
f,
|
| 583 |
'sonogram-speaker-percent-'+currPlainName+'.svg',
|
|
@@ -616,14 +616,14 @@ try:
|
|
| 616 |
fig3_1.write_image("ascn_sunburst.pdf")
|
| 617 |
fig3_1.write_image("ascn_sunburst.svg")
|
| 618 |
with open('ascn_sunburst.pdf') as f:
|
| 619 |
-
col1.
|
| 620 |
"Save As PDF",
|
| 621 |
f,
|
| 622 |
'sonogram-speaker-categories-'+currPlainName+'.pdf',
|
| 623 |
key='download-pdf3',
|
| 624 |
)
|
| 625 |
with open('ascn_sunburst.svg') as f:
|
| 626 |
-
col2.
|
| 627 |
"Save As SVG",
|
| 628 |
f,
|
| 629 |
'sonogram-speaker-categories-'+currPlainName+'.svg',
|
|
@@ -662,14 +662,14 @@ try:
|
|
| 662 |
fig3.write_image("ascn_treemap.pdf")
|
| 663 |
fig3.write_image("ascn_treemap.svg")
|
| 664 |
with open('ascn_treemap.pdf') as f:
|
| 665 |
-
col1.
|
| 666 |
"Save As PDF",
|
| 667 |
f,
|
| 668 |
'sonogram-treemap-'+currPlainName+'.pdf',
|
| 669 |
key='download-pdf4',
|
| 670 |
)
|
| 671 |
with open('ascn_treemap.svg') as f:
|
| 672 |
-
col2.
|
| 673 |
"Save As SVG",
|
| 674 |
f,
|
| 675 |
'sonogram-treemap-'+currPlainName+'.svg',
|
|
@@ -710,14 +710,14 @@ try:
|
|
| 710 |
fig_la.write_image("ascn_timeline.pdf")
|
| 711 |
fig_la.write_image("ascn_timeline.svg")
|
| 712 |
with open('ascn_timeline.pdf') as f:
|
| 713 |
-
col1.
|
| 714 |
"Save As PDF",
|
| 715 |
f,
|
| 716 |
'sonogram-timeline-'+currPlainName+'.pdf',
|
| 717 |
key='download-pdf5',
|
| 718 |
)
|
| 719 |
with open('ascn_timeline.svg') as f:
|
| 720 |
-
col2.
|
| 721 |
"Save As SVG",
|
| 722 |
f,
|
| 723 |
'sonogram-timeline-'+currPlainName+'.svg',
|
|
@@ -751,14 +751,14 @@ try:
|
|
| 751 |
fig_la.write_image("ascn_bar.pdf")
|
| 752 |
fig_la.write_image("ascn_bar.svg")
|
| 753 |
with open('ascn_bar.pdf') as f:
|
| 754 |
-
col1.
|
| 755 |
"Save As PDF",
|
| 756 |
f,
|
| 757 |
'sonogram-speaker-time-'+currPlainName+'.pdf',
|
| 758 |
key='download-pdf6',
|
| 759 |
)
|
| 760 |
with open('ascn_bar.svg') as f:
|
| 761 |
-
col2.
|
| 762 |
"Save As SVG",
|
| 763 |
f,
|
| 764 |
'sonogram-speaker-time-'+currPlainName+'.svg',
|
|
|
|
| 534 |
fig1.write_image("ascn_pie1.pdf")
|
| 535 |
fig1.write_image("ascn_pie1.svg")
|
| 536 |
with open('ascn_pie1.pdf') as f:
|
| 537 |
+
col1.download_button(
|
| 538 |
"Save As PDF",
|
| 539 |
f,
|
| 540 |
'sonogram-voice-category-'+currPlainName+'.pdf',
|
| 541 |
key='download-pdf1',
|
| 542 |
)
|
| 543 |
with open('ascn_pie1.svg') as f:
|
| 544 |
+
col2.download_button(
|
| 545 |
"Save As SVG",
|
| 546 |
f,
|
| 547 |
'sonogram-voice-category-'+currPlainName+'.svg',
|
|
|
|
| 570 |
fig2.write_image("ascn_pie2.pdf")
|
| 571 |
fig2.write_image("ascn_pie2.svg")
|
| 572 |
with open('ascn_pie2.pdf') as f:
|
| 573 |
+
col1.download_button(
|
| 574 |
"Save As PDF",
|
| 575 |
f,
|
| 576 |
'sonogram-speaker-percent-'+currPlainName+'.pdf',
|
| 577 |
key='download-pdf2',
|
| 578 |
)
|
| 579 |
with open('ascn_pie2.svg') as f:
|
| 580 |
+
col2.download_button(
|
| 581 |
"Save As SVG",
|
| 582 |
f,
|
| 583 |
'sonogram-speaker-percent-'+currPlainName+'.svg',
|
|
|
|
| 616 |
fig3_1.write_image("ascn_sunburst.pdf")
|
| 617 |
fig3_1.write_image("ascn_sunburst.svg")
|
| 618 |
with open('ascn_sunburst.pdf') as f:
|
| 619 |
+
col1.download_button(
|
| 620 |
"Save As PDF",
|
| 621 |
f,
|
| 622 |
'sonogram-speaker-categories-'+currPlainName+'.pdf',
|
| 623 |
key='download-pdf3',
|
| 624 |
)
|
| 625 |
with open('ascn_sunburst.svg') as f:
|
| 626 |
+
col2.download_button(
|
| 627 |
"Save As SVG",
|
| 628 |
f,
|
| 629 |
'sonogram-speaker-categories-'+currPlainName+'.svg',
|
|
|
|
| 662 |
fig3.write_image("ascn_treemap.pdf")
|
| 663 |
fig3.write_image("ascn_treemap.svg")
|
| 664 |
with open('ascn_treemap.pdf') as f:
|
| 665 |
+
col1.download_button(
|
| 666 |
"Save As PDF",
|
| 667 |
f,
|
| 668 |
'sonogram-treemap-'+currPlainName+'.pdf',
|
| 669 |
key='download-pdf4',
|
| 670 |
)
|
| 671 |
with open('ascn_treemap.svg') as f:
|
| 672 |
+
col2.download_button(
|
| 673 |
"Save As SVG",
|
| 674 |
f,
|
| 675 |
'sonogram-treemap-'+currPlainName+'.svg',
|
|
|
|
| 710 |
fig_la.write_image("ascn_timeline.pdf")
|
| 711 |
fig_la.write_image("ascn_timeline.svg")
|
| 712 |
with open('ascn_timeline.pdf') as f:
|
| 713 |
+
col1.download_button(
|
| 714 |
"Save As PDF",
|
| 715 |
f,
|
| 716 |
'sonogram-timeline-'+currPlainName+'.pdf',
|
| 717 |
key='download-pdf5',
|
| 718 |
)
|
| 719 |
with open('ascn_timeline.svg') as f:
|
| 720 |
+
col2.download_button(
|
| 721 |
"Save As SVG",
|
| 722 |
f,
|
| 723 |
'sonogram-timeline-'+currPlainName+'.svg',
|
|
|
|
| 751 |
fig_la.write_image("ascn_bar.pdf")
|
| 752 |
fig_la.write_image("ascn_bar.svg")
|
| 753 |
with open('ascn_bar.pdf') as f:
|
| 754 |
+
col1.download_button(
|
| 755 |
"Save As PDF",
|
| 756 |
f,
|
| 757 |
'sonogram-speaker-time-'+currPlainName+'.pdf',
|
| 758 |
key='download-pdf6',
|
| 759 |
)
|
| 760 |
with open('ascn_bar.svg') as f:
|
| 761 |
+
col2.download_button(
|
| 762 |
"Save As SVG",
|
| 763 |
f,
|
| 764 |
'sonogram-speaker-time-'+currPlainName+'.svg',
|