Spaces:
Sleeping
Sleeping
Test download in column
Browse files
app.py
CHANGED
|
@@ -456,6 +456,16 @@ with t1:
|
|
| 456 |
with c1t1:
|
| 457 |
st.write("Left Left")
|
| 458 |
st.button("Hi")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 459 |
with c2t1:
|
| 460 |
st.write("Left Right")
|
| 461 |
st.button("There")
|
|
|
|
| 456 |
with c1t1:
|
| 457 |
st.write("Left Left")
|
| 458 |
st.button("Hi")
|
| 459 |
+
f = open("test.txt",'w+')
|
| 460 |
+
f.write("Hello there")
|
| 461 |
+
f.close()
|
| 462 |
+
with open("test.txt") as f:
|
| 463 |
+
st.download_button(
|
| 464 |
+
"Save As PDF",
|
| 465 |
+
f,
|
| 466 |
+
'sonogram-'+currPlainName+'.txt',
|
| 467 |
+
key='download-txt',
|
| 468 |
+
)
|
| 469 |
with c2t1:
|
| 470 |
st.write("Left Right")
|
| 471 |
st.button("There")
|