Commit c2a5ce41 authored by Atrax Nicolas's avatar Atrax Nicolas

Update pages

parent 292225f7
...@@ -106,7 +106,10 @@ if 'submit' not in st.session_state: ...@@ -106,7 +106,10 @@ if 'submit' not in st.session_state:
if st.session_state.page == 0: if st.session_state.page == 0:
if st.session_state.submit: if st.session_state.submit:
st.session_state.page = 1 if st.session_state.file != None:
st.session_state.page = 1
else:
askPDF()
else: else:
askPDF() askPDF()
......
...@@ -160,9 +160,6 @@ if 'submit' not in st.session_state: ...@@ -160,9 +160,6 @@ if 'submit' not in st.session_state:
if 'detect' not in st.session_state: if 'detect' not in st.session_state:
st.session_state.detect = False st.session_state.detect = False
if 'uploadedTSV' not in st.session_state:
st.session_state.uploadedTSV = False
if 'languages' not in st.session_state: if 'languages' not in st.session_state:
st.session_state.languages = [] st.session_state.languages = []
...@@ -175,10 +172,6 @@ def setSubmit(): ...@@ -175,10 +172,6 @@ def setSubmit():
st.session_state.submit = True st.session_state.submit = True
def setTSV():
st.session_state.uploadedTSV = True
def resetPage(): def resetPage():
st.session_state.page = 0 st.session_state.page = 0
......
...@@ -179,7 +179,11 @@ if 'submit' not in st.session_state: ...@@ -179,7 +179,11 @@ if 'submit' not in st.session_state:
if st.session_state.page == 0: if st.session_state.page == 0:
if st.session_state.submit: if st.session_state.submit:
st.session_state.page = 1 if st.session_state.file != None:
print(st.session_state.file)
st.session_state.page = 1
else:
askTXT()
else: else:
askTXT() askTXT()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment