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