Terjman-Supreme / app.py
BounharAbdelaziz's picture
new live link
4490890 verified
raw
history blame
527 Bytes
from gradio_client import Client
import gradio as gr
client = Client("https://3795d75f0bb8f9419c.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-Supreme πŸ‘¨β€πŸ’»πŸ€―", description="Translate English text to Moroccan Darija using our top and biggest model (3.3B) πŸ€—")
if __name__ == "__main__":
app.launch()