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

Update app.py

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