Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ x += ':'
|
|
7 |
|
8 |
if x:
|
9 |
out = pipe(x)
|
10 |
-
|
11 |
-
|
|
|
12 |
#st.json(out)
|
13 |
-
st.write('The IPA pronunciation of',
|
|
|
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)
|