Marxav commited on
Commit
0b94c3f
1 Parent(s): 03337d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,9 +3,9 @@ from transformers import pipeline
3
 
4
  pipe = pipeline(task='text-generation', model='Marxav/frpron')
5
  x = st.text_input('Write a French word:')
6
- x += ':'
7
 
8
  if x:
 
9
  out = pipe(x)
10
  word_ipa = out[0]["generated_text"]
11
  word = word_ipa.split(":")[0]
 
3
 
4
  pipe = pipeline(task='text-generation', model='Marxav/frpron')
5
  x = st.text_input('Write a French word:')
 
6
 
7
  if x:
8
+ x += ':'
9
  out = pipe(x)
10
  word_ipa = out[0]["generated_text"]
11
  word = word_ipa.split(":")[0]