initialize session_state context
Browse files
app.py
CHANGED
|
@@ -76,6 +76,7 @@ if "LegalExpert" not in st.session_state:
|
|
| 76 |
# create a upload file widget for a pdf
|
| 77 |
pdf_file = st.file_uploader("Upload a PDF file", type=["pdf"])
|
| 78 |
|
|
|
|
| 79 |
# if a pdf file is uploaded
|
| 80 |
if pdf_file:
|
| 81 |
# retrieve the text from the pdf
|
|
|
|
| 76 |
# create a upload file widget for a pdf
|
| 77 |
pdf_file = st.file_uploader("Upload a PDF file", type=["pdf"])
|
| 78 |
|
| 79 |
+
st.session_state.context = None
|
| 80 |
# if a pdf file is uploaded
|
| 81 |
if pdf_file:
|
| 82 |
# retrieve the text from the pdf
|