Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def init_session():
|
|
23 |
st.secrets["DEPLOYMENT_NAME"])
|
24 |
print("OpenAI service initialized")
|
25 |
time.sleep(2)
|
26 |
-
st.session_state['ocr_instance'] = OCRService()
|
27 |
print("OCR service initialized")
|
28 |
st.session_state.a = 1
|
29 |
nltk.downloader.download('maxent_ne_chunker')
|
@@ -58,7 +58,7 @@ if uploaded_doc is not None:
|
|
58 |
st.header('', divider='rainbow')
|
59 |
st.header('Identified personal entities ', divider='rainbow')
|
60 |
st.write(process_out['masked_entities'])
|
61 |
-
st.header('
|
62 |
st.write(process_out['masked_text'])
|
63 |
|
64 |
### TO RUN :: streamlit run ui_app.py
|
|
|
23 |
st.secrets["DEPLOYMENT_NAME"])
|
24 |
print("OpenAI service initialized")
|
25 |
time.sleep(2)
|
26 |
+
st.session_state['ocr_instance'] = OCRService(st.secrets["OCR_API_KEY"])
|
27 |
print("OCR service initialized")
|
28 |
st.session_state.a = 1
|
29 |
nltk.downloader.download('maxent_ne_chunker')
|
|
|
58 |
st.header('', divider='rainbow')
|
59 |
st.header('Identified personal entities ', divider='rainbow')
|
60 |
st.write(process_out['masked_entities'])
|
61 |
+
st.header('Masked Text ', divider='rainbow')
|
62 |
st.write(process_out['masked_text'])
|
63 |
|
64 |
### TO RUN :: streamlit run ui_app.py
|