Spaces:
Sleeping
Sleeping
!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() | |