Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ if res:
|
|
46 |
st.caption('请查收您的排班表') #用于写字幕
|
47 |
st.image(f'timetable_{res}.png') #用于显示图像
|
48 |
|
49 |
-
with open("
|
50 |
btn = st.download_button(
|
51 |
label="下载排班表",
|
52 |
data=file,
|
|
|
46 |
st.caption('请查收您的排班表') #用于写字幕
|
47 |
st.image(f'timetable_{res}.png') #用于显示图像
|
48 |
|
49 |
+
with open(f"timetable_{res}.png", "rb") as file:
|
50 |
btn = st.download_button(
|
51 |
label="下载排班表",
|
52 |
data=file,
|