Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GarganTexternal tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julien Moutinho
GarganTexternal tools
Commits
c2a5ce41
Commit
c2a5ce41
authored
Aug 29, 2023
by
Atrax Nicolas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pages
parent
292225f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
PDF_to_TXT.py
Streamlit/pages/PDF_to_TXT.py
+4
-1
TSV_Translator.py
Streamlit/pages/TSV_Translator.py
+0
-7
TXT_to_TSV.py
Streamlit/pages/TXT_to_TSV.py
+5
-1
No files found.
Streamlit/pages/PDF_to_TXT.py
View file @
c2a5ce41
...
...
@@ -106,7 +106,10 @@ if 'submit' not in st.session_state:
if
st
.
session_state
.
page
==
0
:
if
st
.
session_state
.
submit
:
st
.
session_state
.
page
=
1
if
st
.
session_state
.
file
!=
None
:
st
.
session_state
.
page
=
1
else
:
askPDF
()
else
:
askPDF
()
...
...
Streamlit/pages/TSV_Translator.py
View file @
c2a5ce41
...
...
@@ -160,9 +160,6 @@ if 'submit' not in st.session_state:
if
'detect'
not
in
st
.
session_state
:
st
.
session_state
.
detect
=
False
if
'uploadedTSV'
not
in
st
.
session_state
:
st
.
session_state
.
uploadedTSV
=
False
if
'languages'
not
in
st
.
session_state
:
st
.
session_state
.
languages
=
[]
...
...
@@ -175,10 +172,6 @@ def setSubmit():
st
.
session_state
.
submit
=
True
def
setTSV
():
st
.
session_state
.
uploadedTSV
=
True
def
resetPage
():
st
.
session_state
.
page
=
0
...
...
Streamlit/pages/TXT_to_TSV.py
View file @
c2a5ce41
...
...
@@ -179,7 +179,11 @@ if 'submit' not in st.session_state:
if
st
.
session_state
.
page
==
0
:
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
:
askTXT
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment