Spaces:
Runtime error
Runtime error
BounharAbdelaziz
commited on
Commit
β’
110b47e
1
Parent(s):
28178f6
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from gradio_client import Client
|
2 |
import gradio as gr
|
3 |
|
4 |
-
client = Client("https://
|
5 |
|
6 |
def respond(english_text):
|
7 |
darija_translated_text = client.predict(
|
@@ -11,7 +11,7 @@ def respond(english_text):
|
|
11 |
return darija_translated_text
|
12 |
|
13 |
|
14 |
-
app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
app.launch()
|
|
|
1 |
from gradio_client import Client
|
2 |
import gradio as gr
|
3 |
|
4 |
+
client = Client("https://5e51c3c58e4132ddf5.gradio.live/")
|
5 |
|
6 |
def respond(english_text):
|
7 |
darija_translated_text = client.predict(
|
|
|
11 |
return darija_translated_text
|
12 |
|
13 |
|
14 |
+
app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Supreme π¨βπ»", description="Translate English text to Moroccan Darija using our biggest model (3.3B) π€")
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
app.launch()
|