Update app.py
Browse files
app.py
CHANGED
|
@@ -172,9 +172,7 @@ def app2():
|
|
| 172 |
file_name=uploaded_file.name+"_annotated.pdf",
|
| 173 |
mime='application/octet-stream')
|
| 174 |
|
| 175 |
-
|
| 176 |
-
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
| 177 |
-
components.iframe("data:application/pdf;base64,{base64_pdf}", width=800, height=800)
|
| 178 |
|
| 179 |
#with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
|
| 180 |
# base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
|
|
|
| 172 |
file_name=uploaded_file.name+"_annotated.pdf",
|
| 173 |
mime='application/octet-stream')
|
| 174 |
|
| 175 |
+
components.iframe(tempfile.gettempdir()+"/annott.pdf", width=800, height=800)
|
|
|
|
|
|
|
| 176 |
|
| 177 |
#with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
|
| 178 |
# base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|