dreji18 commited on
Commit
8c9d6ab
1 Parent(s): 39ad2bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -160,14 +160,16 @@ def app2():
160
  print("Error occured: {}".format(e))
161
  raise e
162
 
163
- if counter !=0:
164
- with open((tempfile.gettempdir()+"/annott.pdf"), "rb") as pdf_file:
165
- PDFbyte = pdf_file.read()
166
-
167
- hy.download_button(label="Download Annotated PDF",
168
- data=PDFbyte,
169
- file_name="annotated.pdf",
170
- mime='application/octet-stream')
 
 
171
 
172
  #with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
173
  # base64_pdf = base64.b64encode(f.read()).decode('utf-8')
 
160
  print("Error occured: {}".format(e))
161
  raise e
162
 
163
+ ce, c1, ce, c2, c3 = hy.columns([0.07, 1, 0.07, 4, 1.5])
164
+ with c2:
165
+ if counter !=0:
166
+ with open((tempfile.gettempdir()+"/annott.pdf"), "rb") as pdf_file:
167
+ PDFbyte = pdf_file.read()
168
+
169
+ hy.download_button(label="📥 Download Annotated PDF",
170
+ data=PDFbyte,
171
+ file_name="annotated.pdf",
172
+ mime='application/octet-stream')
173
 
174
  #with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
175
  # base64_pdf = base64.b64encode(f.read()).decode('utf-8')