kuroiikimono
commited on
Commit
•
830c011
1
Parent(s):
77ae29d
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import secrets
|
|
10 |
|
11 |
import threading
|
12 |
from streamlit.runtime.scriptrunner import add_script_run_ctx
|
13 |
-
import streamlit.components.v1 as components
|
14 |
from streamlit.runtime import get_instance
|
15 |
|
16 |
from pypdf import PdfReader
|
@@ -81,7 +81,8 @@ EXIT_JS = """
|
|
81 |
"""
|
82 |
|
83 |
# Embed the JavaScript in the Streamlit app
|
84 |
-
components.html(EXIT_JS)
|
|
|
85 |
|
86 |
def main():
|
87 |
|
|
|
10 |
|
11 |
import threading
|
12 |
from streamlit.runtime.scriptrunner import add_script_run_ctx
|
13 |
+
#import streamlit.components.v1 as components
|
14 |
from streamlit.runtime import get_instance
|
15 |
|
16 |
from pypdf import PdfReader
|
|
|
81 |
"""
|
82 |
|
83 |
# Embed the JavaScript in the Streamlit app
|
84 |
+
#components.html(EXIT_JS)
|
85 |
+
streamlit_js_eval(js_expressions = EXIT_JS)
|
86 |
|
87 |
def main():
|
88 |
|