Spaces:
Runtime error
Runtime error
chore: adding title and desc
Browse files
app.py
CHANGED
@@ -10,6 +10,10 @@ repo = Repository(
|
|
10 |
use_auth_token=os.environ.get("token")
|
11 |
)
|
12 |
reloaded = tf.saved_model.load("nmt-bahdanau-attention/translator")
|
|
|
|
|
|
|
|
|
13 |
examples=["how are you?", "good morning.", "how is your health?"]
|
14 |
|
15 |
def get_translation(sentence):
|
@@ -22,6 +26,8 @@ nmt_space = gr.Interface(
|
|
22 |
fn=get_translation,
|
23 |
inputs=gr.Textbox(label="English Sentence"),
|
24 |
outputs=gr.Textbox(label="French Sentence"),
|
|
|
|
|
25 |
examples=examples,
|
26 |
)
|
27 |
|
|
|
10 |
use_auth_token=os.environ.get("token")
|
11 |
)
|
12 |
reloaded = tf.saved_model.load("nmt-bahdanau-attention/translator")
|
13 |
+
|
14 |
+
title="Neural Machine Translation with Bahdanau's Attention"
|
15 |
+
description="The model used here is a POC and not SOTA on NMT."
|
16 |
+
|
17 |
examples=["how are you?", "good morning.", "how is your health?"]
|
18 |
|
19 |
def get_translation(sentence):
|
|
|
26 |
fn=get_translation,
|
27 |
inputs=gr.Textbox(label="English Sentence"),
|
28 |
outputs=gr.Textbox(label="French Sentence"),
|
29 |
+
title=title,
|
30 |
+
description=description,
|
31 |
examples=examples,
|
32 |
)
|
33 |
|