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
1
Merge Requests
1
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
Anne-Laure Thomas Derepas
GarganTexternal tools
Commits
450d9bcf
Commit
450d9bcf
authored
Sep 06, 2023
by
Loïc Chapron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade lang basic
parent
458d6498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
README.md
Streamlit/README.md
+1
-0
basic.py
Streamlit/src/basic.py
+5
-4
No files found.
Streamlit/README.md
View file @
450d9bcf
...
@@ -9,6 +9,7 @@ pip install st-pages
...
@@ -9,6 +9,7 @@ pip install st-pages
```
shell
```
shell
pip
install
httpx[http2]
pip
install
httpx[http2]
pip
install
youtube-transcript-api
```
```
## Start Project
## Start Project
...
...
Streamlit/src/basic.py
View file @
450d9bcf
...
@@ -65,13 +65,14 @@ def base(page):
...
@@ -65,13 +65,14 @@ def base(page):
del
st
.
session_state
[
key
]
del
st
.
session_state
[
key
]
# select the lang
# select the lang
_
,
_
,
_
,
_
,
_
,
col
=
st
.
columns
(
6
)
coltitle
,
col
=
st
.
columns
([
4
,
1
])
with
coltitle
:
st
.
write
(
st
.
session_state
.
general_text_dict
[
'title'
])
with
col
:
with
col
:
col1
,
col2
=
st
.
columns
(
2
)
_
,
col1
,
col2
=
st
.
columns
([
1
,
1
,
1
]
)
with
col1
:
with
col1
:
st
.
button
(
':fr:'
,
on_click
=
update_lang
,
args
=
(
'fr'
,))
st
.
button
(
':fr:'
,
on_click
=
update_lang
,
args
=
(
'fr'
,))
with
col2
:
with
col2
:
st
.
button
(
':us:'
,
on_click
=
update_lang
,
args
=
(
'en'
,))
st
.
button
(
':us:'
,
on_click
=
update_lang
,
args
=
(
'en'
,))
st
.
write
(
st
.
session_state
.
general_text_dict
[
'title'
])
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