update repo
Browse files- app.py +1 -1
- text-to-speach.py +2 -2
- translation.py +1 -1
app.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
|
11 |
st.write('Part 1')
|
12 |
|
13 |
-
question = st.text_input('Posez votre question
|
14 |
url = st.text_input('mettez le liens de votre image')
|
15 |
|
16 |
if st.button('générer'):
|
|
|
10 |
|
11 |
st.write('Part 1')
|
12 |
|
13 |
+
question = st.text_input('Posez votre question')
|
14 |
url = st.text_input('mettez le liens de votre image')
|
15 |
|
16 |
if st.button('générer'):
|
text-to-speach.py
CHANGED
@@ -7,8 +7,8 @@ preload_models()
|
|
7 |
|
8 |
# generate audio from text
|
9 |
text_prompt = """
|
10 |
-
|
11 |
-
|
12 |
"""
|
13 |
audio_array = generate_audio(text_prompt)
|
14 |
|
|
|
7 |
|
8 |
# generate audio from text
|
9 |
text_prompt = """
|
10 |
+
Le meilleur pilotes de tout les temps ?
|
11 |
+
j'hésite ... Hamilton ? oui, je dirais Hamilton.
|
12 |
"""
|
13 |
audio_array = generate_audio(text_prompt)
|
14 |
|
translation.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from transformers import pipeline
|
2 |
|
3 |
model_checkpoint = "Helsinki-NLP/opus-mt-en-fr"
|
4 |
translator = pipeline("translation", model=model_checkpoint)
|
|
|
1 |
+
from transformers import AutoTokenizer, AutoModelWithLMHead, TranslationPipeline, pipeline
|
2 |
|
3 |
model_checkpoint = "Helsinki-NLP/opus-mt-en-fr"
|
4 |
translator = pipeline("translation", model=model_checkpoint)
|