frpron / app.py
Marxav's picture
Update app.py
0df0413
raw
history blame
302 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline(task='text-generation', model='Marxav/frpron')
x = st.text_input('Write a French word:')
x += ':'
if x:
out = pipe(x)
#out = out.split(":", 1)[1]
#st.json(out)
st.write('The IPA pronunciation of', x, 'is:', out)