Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,6 @@ def sentence_builder(txt, new_tokens, ret_seq):
|
|
37 |
demo = gr.Interface(
|
38 |
sentence_builder,
|
39 |
[
|
40 |
-
gr.Textbox("", label = "Input", info="Give 8 words atleast, not to get concatenated with default words to make up it's minimum requirement."),
|
41 |
gr.Dropdown(
|
42 |
["10", "20", "30", "40", "50", "60", "80", "100"],
|
43 |
label="New Tokens",
|
@@ -49,7 +48,20 @@ demo = gr.Interface(
|
|
49 |
label="Number of Return Sequences",
|
50 |
info="Choose how many return sequences are required in output.",
|
51 |
value="5"
|
52 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
],
|
54 |
[
|
55 |
gr.Textbox("", label = "Output")
|
|
|
37 |
demo = gr.Interface(
|
38 |
sentence_builder,
|
39 |
[
|
|
|
40 |
gr.Dropdown(
|
41 |
["10", "20", "30", "40", "50", "60", "80", "100"],
|
42 |
label="New Tokens",
|
|
|
48 |
label="Number of Return Sequences",
|
49 |
info="Choose how many return sequences are required in output.",
|
50 |
value="5"
|
51 |
+
),
|
52 |
+
gr.Textbox("", label = "Input",
|
53 |
+
info="Give 8 words atleast, not to get concatenated with default words to make up it's minimum requirement.",
|
54 |
+
examples=[
|
55 |
+
["A horse! a horse! my kingdom for a horse!",
|
56 |
+
"What’s In A Name? A Rose By Any Name Would Smell As Sweet",
|
57 |
+
"If Music Be The Food Of Love, Play On",
|
58 |
+
"Our Doubts Are Traitors And Make Us Lose The Good We Oft Might Win By Fearing To Attempt.",
|
59 |
+
"All That Glitters Is Not Gold.",
|
60 |
+
"Love All, Trust A Few, Do Wrong To None.",
|
61 |
+
"Love Looks Not With The Eyes, But With The Mind; And Therefore Is Winged Cupid Painted Blind"
|
62 |
+
]
|
63 |
+
]
|
64 |
+
)
|
65 |
],
|
66 |
[
|
67 |
gr.Textbox("", label = "Output")
|