add separator
Browse files
app.py
CHANGED
@@ -3,8 +3,10 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipe = pipeline(task='text-generation', model='Marxav/frpron')
|
5 |
x = st.text_input('Write a French word:')
|
|
|
6 |
|
7 |
if x:
|
8 |
out = pipe(x)
|
9 |
-
|
|
|
10 |
st.write('The IPA pronunciation of', x, 'is', out)
|
|
|
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 |
+
out = out.split(":", 1)[1]
|
11 |
+
#st.json(out)
|
12 |
st.write('The IPA pronunciation of', x, 'is', out)
|