vankhieu commited on
Commit
6f550fc
·
1 Parent(s): 5185793

fix show pdf via google viewer

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def df_select_callback(df: pd.DataFrame, evt: gr.SelectData):
115
 
116
  <div id="my-pdf" class="pdfobject-container" style="height: 100%">
117
  <object data="data:application/pdf;base64,{cv_base64}" type="application/pdf" style="height: 100%; width: 100%;">
118
- <iframe src="https://docs.google.com/viewer?url={pdf_url}&embedded=true" style="height: 100%; width: 100%;" frameborder="0"></iframe>
119
  </object>
120
  </div>
121
  </div>
 
115
 
116
  <div id="my-pdf" class="pdfobject-container" style="height: 100%">
117
  <object data="data:application/pdf;base64,{cv_base64}" type="application/pdf" style="height: 100%; width: 100%;">
118
+ <iframe src="https://docs.google.com/viewer?url={pdf_encoded_url}&embedded=true" style="height: 100%; width: 100%;" frameborder="0" allow="accelerometer; ambient-light-sensor; autoplay; battery; camera; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking" sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"></iframe>
119
  </object>
120
  </div>
121
  </div>