Update app.py
Browse files
app.py
CHANGED
@@ -263,6 +263,12 @@ iface = gr.Interface(
|
|
263 |
gr.Number(value=0.6,label="Length Penalty (for beam search)")
|
264 |
],
|
265 |
outputs=gr.Textbox(label="Translation"),
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
title="Translation Interface for English to Kabyle",
|
267 |
description="Translate text using a pre-trained model.",
|
268 |
)
|
|
|
263 |
gr.Number(value=0.6,label="Length Penalty (for beam search)")
|
264 |
],
|
265 |
outputs=gr.Textbox(label="Translation"),
|
266 |
+
examples=[
|
267 |
+
['Is it true that you were sick?', "greedy", 5,5,0.6],
|
268 |
+
['This will probably not translate great, as it contains words not commonly used and is somewhat lenghty.', "greedy", 5,5,0.6],
|
269 |
+
['Do not be afraid to look into the future.', "greedy", 5,5,0.6],
|
270 |
+
['The book is on the table.', 'beam search', 6,6,0.7]],
|
271 |
+
cache_examples=True,
|
272 |
title="Translation Interface for English to Kabyle",
|
273 |
description="Translate text using a pre-trained model.",
|
274 |
)
|