Spaces:
Sleeping
Sleeping
BounharAbdelaziz
commited on
Commit
β’
ade53b7
1
Parent(s):
91b84c0
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-Nano π", description="Translate English text to Moroccan Darija using our smallest model (77M) π€")
|
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-Nano π¨βπ» π", description="Translate English text to Moroccan Darija using our smallest model (77M) π€")
|
17 |
|
18 |
if __name__ == "__main__":
|
19 |
app.launch()
|