Spaces:
Runtime error
Runtime error
File size: 638 Bytes
a8f0c36 c4480a3 0ef93b5 a8f0c36 0ef93b5 7c88e46 a8f0c36 d33d29c 2139159 a8f0c36 d33d29c 0ef93b5 2139159 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
from gradio_client import Client
import gradio as gr
client = Client("https://15fdee77fc28978c9b.gradio.live/")
def respond(english_text):
darija_translated_text = client.predict(
text=english_text,
api_name="/predict"
)
return darija_translated_text
# Create the Gradio interface
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()
|