File size: 523 Bytes
b1d814b
c4480a3
8c61996
b1d814b
0ef93b5
7c88e46
b1d814b
 
 
 
 
d33d29c
d5d3107
d33d29c
0ef93b5
d33d29c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from gradio_client import Client
import gradio as gr

client = Client("https://4f122e3ce62b0d809b.gradio.live/")

def respond(english_text):
    darija_translated_text = client.predict(
    		text=english_text,
    		api_name="/predict"
    )
    return darija_translated_text

app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Ultra πŸ‘¨β€πŸ’»πŸ€©", description="Translate English text to Moroccan Darija using our second biggest model (1.3B) πŸ€—")

if __name__ == "__main__":
    app.launch()