Spaces:
Sleeping
Sleeping
File size: 283 Bytes
07cadbd d9ec346 aeb54b3 d9ec346 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
!pip install transformers
import gradio as gr
from transformers import pipeline
pipe = pipeline("text2text-generation", model="mohamedtolba/franco-arabics")
def translate(text):
return pipe(text)
demo = gr.Interface(fn=translate, inputs="text", outputs="text")
demo.launch()
|