SilvusTV commited on
Commit
496e159
1 Parent(s): 485eca9

update repo

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. text-to-speach.py +2 -2
  3. 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 (en anglais)')
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
- Hello, my name is Suno. And, uh — and I like pizza. [laughs]
11
- But I also have other interests such as playing tic tac toe.
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)