Demosthene-OR
commited on
Commit
·
b8a6a5d
1
Parent(s):
ec2235c
....
Browse files- packages.txt +1 -1
- requirements.txt +4 -4
- tabs/modelisation_seq2seq_tab.py +3 -3
packages.txt
CHANGED
@@ -2,4 +2,4 @@ build-essential
|
|
2 |
libasound-dev
|
3 |
portaudio19-dev
|
4 |
python3-pyaudio
|
5 |
-
graphviz
|
|
|
2 |
libasound-dev
|
3 |
portaudio19-dev
|
4 |
python3-pyaudio
|
5 |
+
# graphviz
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
streamlit==1.26.0
|
2 |
-
pandas
|
3 |
matplotlib==3.8.2
|
4 |
ipython==8.21.0
|
5 |
numpy==1.23.5
|
@@ -16,7 +16,7 @@ wordcloud==1.9.3
|
|
16 |
networkx==2.7.0
|
17 |
transformers==4.37.2
|
18 |
sentencepiece==0.1.99
|
19 |
-
openai-whisper==20231117
|
20 |
# tiktoken
|
21 |
torch==2.2.0
|
22 |
speechrecognition==3.10.1
|
@@ -32,5 +32,5 @@ https://files.pythonhosted.org/packages/cc/58/96aff0e5cb8b59c06232ea7e249ed902d0
|
|
32 |
streamlit-option-menu==0.3.12
|
33 |
deep-translator==1.11.4
|
34 |
requests==2.27.0
|
35 |
-
asyncio
|
36 |
-
aiohttp
|
|
|
1 |
streamlit==1.26.0
|
2 |
+
pandas==2.2.1
|
3 |
matplotlib==3.8.2
|
4 |
ipython==8.21.0
|
5 |
numpy==1.23.5
|
|
|
16 |
networkx==2.7.0
|
17 |
transformers==4.37.2
|
18 |
sentencepiece==0.1.99
|
19 |
+
openai-whisper # ==20231117
|
20 |
# tiktoken
|
21 |
torch==2.2.0
|
22 |
speechrecognition==3.10.1
|
|
|
32 |
streamlit-option-menu==0.3.12
|
33 |
deep-translator==1.11.4
|
34 |
requests==2.27.0
|
35 |
+
# asyncio==3.4.3
|
36 |
+
# aiohttp==3.9.3
|
tabs/modelisation_seq2seq_tab.py
CHANGED
@@ -24,8 +24,8 @@ from gtts import gTTS
|
|
24 |
from extra_streamlit_components import tab_bar, TabBarItemData
|
25 |
from translate_app import tr
|
26 |
import requests
|
27 |
-
import asyncio
|
28 |
-
import aiohttp
|
29 |
from multiprocessing import Pool
|
30 |
import concurrent.futures
|
31 |
import time
|
@@ -391,7 +391,7 @@ def run():
|
|
391 |
if not detection:
|
392 |
l_src = st.selectbox(tr("Choisissez la langue parlée")+" :",lang_tgt, format_func = find_lang_label, index=1 )
|
393 |
l_tgt = st.selectbox(tr("Choisissez la langue cible")+" :",lang_tgt, format_func = find_lang_label )
|
394 |
-
audio_bytes = audio_recorder (pause_threshold=1.0, sample_rate=16000, text=tr("Cliquez
|
395 |
recording_color="#e8b62c", neutral_color="#1ec3bc", icon_size="6x",)
|
396 |
|
397 |
if audio_bytes:
|
|
|
24 |
from extra_streamlit_components import tab_bar, TabBarItemData
|
25 |
from translate_app import tr
|
26 |
import requests
|
27 |
+
# import asyncio
|
28 |
+
# import aiohttp
|
29 |
from multiprocessing import Pool
|
30 |
import concurrent.futures
|
31 |
import time
|
|
|
391 |
if not detection:
|
392 |
l_src = st.selectbox(tr("Choisissez la langue parlée")+" :",lang_tgt, format_func = find_lang_label, index=1 )
|
393 |
l_tgt = st.selectbox(tr("Choisissez la langue cible")+" :",lang_tgt, format_func = find_lang_label )
|
394 |
+
audio_bytes = audio_recorder (pause_threshold=1.0, sample_rate=16000, text=tr("Cliquez, puis attendre 2sec. avant de parler"), \
|
395 |
recording_color="#e8b62c", neutral_color="#1ec3bc", icon_size="6x",)
|
396 |
|
397 |
if audio_bytes:
|