Update app.py
Browse files
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]
|