Marxav commited on
Commit
02f3c80
1 Parent(s): 685dadd

add separator

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- st.json(out)
 
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)