kuroiikimono
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
import zipfile, shutil, time
|
3 |
import os
|
4 |
import hashlib
|
5 |
-
from streamlit_pdf_viewer import pdf_viewer
|
6 |
from streamlit import runtime
|
7 |
from streamlit.runtime.scriptrunner import get_script_run_ctx
|
8 |
from streamlit_js_eval import streamlit_js_eval
|
@@ -148,7 +148,7 @@ This translation app is useful for people who want to translate something or wan
|
|
148 |
st.session_state.uploadedfilename = uploadedfilename
|
149 |
|
150 |
if "book" not in st.session_state:
|
151 |
-
pdf_viewer(input=uploaded_file.getvalue(), width=700, height=500)
|
152 |
|
153 |
my_makedirs(
|
154 |
f"removefolder/{temp_dir}/upload_folder_{st.session_state.count}"
|
|
|
2 |
import zipfile, shutil, time
|
3 |
import os
|
4 |
import hashlib
|
5 |
+
#from streamlit_pdf_viewer import pdf_viewer
|
6 |
from streamlit import runtime
|
7 |
from streamlit.runtime.scriptrunner import get_script_run_ctx
|
8 |
from streamlit_js_eval import streamlit_js_eval
|
|
|
148 |
st.session_state.uploadedfilename = uploadedfilename
|
149 |
|
150 |
if "book" not in st.session_state:
|
151 |
+
#pdf_viewer(input=uploaded_file.getvalue(), width=700, height=500)
|
152 |
|
153 |
my_makedirs(
|
154 |
f"removefolder/{temp_dir}/upload_folder_{st.session_state.count}"
|