File size: 259 Bytes
97edd96
 
 
0d8c4af
6330360
97edd96
 
685dadd
97edd96
3cbd634
1
2
3
4
5
6
7
8
9
10
import streamlit as st
from transformers import pipeline

pipe = pipeline(task='text-generation', model='Marxav/frpron')
x = st.text_input('Write a French word:')

if x:
    out = pipe(x)
    st.json(out)
    st.write('The IPA pronunciation of', x, 'is', out)