Spaces:
Runtime error
Runtime error
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() | |