Marxav commited on
Commit
aab0f16
1 Parent(s): 0df0413

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,6 +7,7 @@ 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)
 
7
 
8
  if x:
9
  out = pipe(x)
10
+ x_ipa = out[0]["generated_text"]
11
+ ipa = x_ipa.split(":", 1)[1]
12
  #st.json(out)
13
+ st.write('The IPA pronunciation of', x, 'is:', ipa)