Spaces:
Running
Running
BounharAbdelaziz
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def respond(english_text):
|
|
13 |
darija_translated_text = requests.post(API_URL, headers=headers, json=payload)
|
14 |
return darija_translated_text.json()[0]["generated_text"]
|
15 |
|
16 |
-
app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Large-v2 π¨βπ»π₯°", description="Translate English text to Moroccan Darija using our Large model π€")
|
17 |
|
18 |
if __name__ == "__main__":
|
19 |
app.launch()
|
|
|
13 |
darija_translated_text = requests.post(API_URL, headers=headers, json=payload)
|
14 |
return darija_translated_text.json()[0]["generated_text"]
|
15 |
|
16 |
+
app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Large-v2 π¨βπ»π₯°", description="Translate English text to Moroccan Darija using our Large model (240M) π€")
|
17 |
|
18 |
if __name__ == "__main__":
|
19 |
app.launch()
|