Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -296,7 +296,7 @@ st.markdown("""
|
|
296 |
|
297 |
st.markdown("---")
|
298 |
|
299 |
-
url_text = st.text_input("Please Enter a url here",value="https://www.rba.gov.au/monetary-policy/rba-board-minutes/2022/2022-05-03.html")
|
300 |
|
301 |
st.markdown(
|
302 |
"<h3 style='text-align: center; color: red;'>OR</h3>",
|
@@ -316,7 +316,7 @@ if validators.url(url_text):
|
|
316 |
|
317 |
elif upload_doc:
|
318 |
|
319 |
-
|
320 |
text, pdf_title = extract_text_from_file(upload_doc)
|
321 |
passages = preprocess_plain_text(text,window_size=window_size)
|
322 |
|
|
|
296 |
|
297 |
st.markdown("---")
|
298 |
|
299 |
+
url_text = st.text_input("Please Enter a url here",value="https://www.rba.gov.au/monetary-policy/rba-board-minutes/2022/2022-05-03.html",key='text')
|
300 |
|
301 |
st.markdown(
|
302 |
"<h3 style='text-align: center; color: red;'>OR</h3>",
|
|
|
316 |
|
317 |
elif upload_doc:
|
318 |
|
319 |
+
st.session_state["text"] = ""
|
320 |
text, pdf_title = extract_text_from_file(upload_doc)
|
321 |
passages = preprocess_plain_text(text,window_size=window_size)
|
322 |
|