ahed9x's picture
Update app.py
07cadbd verified
raw
history blame
283 Bytes
!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()