Static to Streamlit
Browse files
Home.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
translations = {
|
| 4 |
+
'fr': {
|
| 5 |
+
'title': "## Cours d'IA en français 📚",
|
| 6 |
+
'content':
|
| 7 |
+
"""
|
| 8 |
+
La liste des cours, entièrement gratuits et disponibles en ligne, que j'ai traduit en français :
|
| 9 |
+
|
| 10 |
+
**• Le [Cours d’apprentissage profond de la NYU de Yann Le Cun et Alfredo Canziani](https://lbourdois.github.io/cours-dl-nyu/)**
|
| 11 |
+
Le contenu est structuré en 19 unités, avec 33 vidéos 🎥 de cours (cours magistraux et travaux dirigés) d'une durée totale d'environ 45H, 74 pages web 🌐 résumant les vidéos via les notes prises par les étudiants pendant le cours, et 16 notebooks Jupyter 📓 (en PyTorch) utilisés lors des TD.
|
| 12 |
+
Enfin un [jeu de données](https://huggingface.co/datasets/lbourdois/en-fr-nyu-dl-course-corpus) de plus de 3000 données parallèles vérifiées manuellement a été créé pour entraîner un modèle de traduction.
|
| 13 |
+
|
| 14 |
+
**• Le [Cours de traitement automatique du langage (NLP) de Hugging Face 🤗](https://huggingface.co/learn/nlp-course/fr/)**
|
| 15 |
+
Le contenu est structuré en 10 chapitres comprenant un total de 76 vidéos 🎥 d'une durée totale d'environ 5H, de 78 pages web 🌐 et 61 notebooks Jupyter 📓 (en PyTorch et Tensorflow).
|
| 16 |
+
|
| 17 |
+
**• Le [Cours d'audio de Hugging Face 🤗](https://huggingface.co/learn/audio-course/fr/)**
|
| 18 |
+
Le contenu est structuré en 8 unités réparties sur 46 pages web 🌐.
|
| 19 |
+
|
| 20 |
+
**• Le [Cours de modèles de diffusion de Hugging Face 🤗](https://github.com/huggingface/diffusion-models-class/tree/main/units/fr)**
|
| 21 |
+
Le contenu est structuré en 4 chapitres portant sur 17 pages web 🌐 et 8 notebooks Jupyter 📓 (en PyTorch).
|
| 22 |
+
"""
|
| 23 |
+
},
|
| 24 |
+
'en': {
|
| 25 |
+
'title': '#### AI courses in French 📚',
|
| 26 |
+
'content':
|
| 27 |
+
"""
|
| 28 |
+
The list of courses, entirely free and available online, which I have translated into French:
|
| 29 |
+
|
| 30 |
+
**• [Deep Learning Course from NYU by Yann Le Cun and Alfredo Canziani](https://lbourdois.github.io/cours-dl-nyu/)**
|
| 31 |
+
The content is structured into 19 units, with 33 videos 🎥 of courses (lectures and practicums) lasting a total of around 45H, 74 web pages 🌐 summarizing the videos through notes taken by students during the course, and 16 Jupyter notebooks 📓 (in PyTorch) used during practicums.
|
| 32 |
+
A [dataset](https://huggingface.co/datasets/lbourdois/en-fr-nyu-dl-course-corpus) of more than 3000 parallel data manually checked was created to train a translation model.
|
| 33 |
+
|
| 34 |
+
**• [Hugging Face's NLP Course 🤗](https://huggingface.co/learn/nlp-course/fr/)**
|
| 35 |
+
The content is structured into 10 chapters comprising a total of 76 videos 🎥 lasting around 5H, 78 web pages 🌐 and 61 Jupyter notebooks 📓 (in PyTorch and Tensorflow).
|
| 36 |
+
|
| 37 |
+
**• [Hugging Face's Audio Course 🤗](https://huggingface.co/learn/audio-course/fr/)**
|
| 38 |
+
The content is structured into 8 units spread over 46 web pages 🌐.
|
| 39 |
+
|
| 40 |
+
**• [Hugging Face's Diffusion Models Course 🤗](https://github.com/huggingface/diffusion-models-class/tree/main/units/fr)**
|
| 41 |
+
The content is structured into 4 chapters spread over 17 web pages 🌐 and 8 Jupyter notebooks 📓 (in PyTorch).
|
| 42 |
+
"""
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
def language_selector():
|
| 47 |
+
languages = {'FR': '🇫🇷', 'EN': '🇬🇧'}
|
| 48 |
+
selected_lang = st.selectbox('', options=list(languages.keys()), format_func=lambda x: languages[x], key='lang_selector')
|
| 49 |
+
return 'fr' if selected_lang == 'FR' else 'en'
|
| 50 |
+
|
| 51 |
+
left_column, right_column = st.columns([5, 1])
|
| 52 |
+
|
| 53 |
+
# Add a selector to the right column
|
| 54 |
+
with right_column:
|
| 55 |
+
lang = language_selector()
|
| 56 |
+
|
| 57 |
+
# Add a title to the left column
|
| 58 |
+
with left_column:
|
| 59 |
+
st.markdown(translations[lang]['title'])
|
| 60 |
+
|
| 61 |
+
st.markdown(""" """)
|
| 62 |
+
st.write(translations[lang]['content'])
|