From 6de674906204e4bd6828061ce913d7069850272b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 26 Feb 2025 18:42:50 -0800 Subject: [PATCH] webservice: fix download button downloads wrong file --- misc/_webservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/_webservice.py b/misc/_webservice.py index b006a1ba..d8107da6 100644 --- a/misc/_webservice.py +++ b/misc/_webservice.py @@ -234,7 +234,7 @@ if uploaded: st.download_button( label="Download output PDF", - data=input_file.read(), + data=output_file.read(), file_name=uploaded.name, mime="application/pdf", )