Jordan Myers
commited on
Commit
·
b7db24f
1
Parent(s):
975a324
small fixes and update
Browse files
app.py
CHANGED
@@ -46,10 +46,15 @@ app = gr.Interface(
|
|
46 |
gr.components.Textbox(label="Text"),
|
47 |
gr.components.Dropdown(label="Source Language", choices=list(LANG_CODES.keys())),
|
48 |
gr.components.Dropdown(label="Target Language", choices=list(LANG_CODES.keys())),
|
49 |
-
gr.Slider(label="Number of return sequences", value=
|
50 |
],
|
51 |
outputs=["text"],
|
52 |
-
examples=[
|
|
|
|
|
|
|
|
|
|
|
53 |
cache_examples=False,
|
54 |
title="A simple English / toki pona Neural Translation App",
|
55 |
description="A simple English / toki pona Neural Translation App"
|
|
|
46 |
gr.components.Textbox(label="Text"),
|
47 |
gr.components.Dropdown(label="Source Language", choices=list(LANG_CODES.keys())),
|
48 |
gr.components.Dropdown(label="Target Language", choices=list(LANG_CODES.keys())),
|
49 |
+
gr.Slider(label="Number of return sequences", value=3, minimum=1, maximum=12, step=1)
|
50 |
],
|
51 |
outputs=["text"],
|
52 |
+
examples=[
|
53 |
+
["Welcome to my translation app.", "English", "toki pona", 3],
|
54 |
+
["Its not always perfect, but its pretty okay!", "English", "toki pona", 3],
|
55 |
+
["ilo pi ante toki ni li pona a!", "toki pona", "English", 3]
|
56 |
+
["kijetesantakalu li pona", "toki pona", "English", 3],
|
57 |
+
],
|
58 |
cache_examples=False,
|
59 |
title="A simple English / toki pona Neural Translation App",
|
60 |
description="A simple English / toki pona Neural Translation App"
|