Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
@@ -161,14 +161,23 @@ with block:
|
|
161 |
margin=False,
|
162 |
rounded=(False, True, True, False),
|
163 |
)
|
164 |
-
task = gr.Dropdown(label="task",
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
text_gen = gr.Text(
|
173 |
value='εεεεε', label="Generated images", show_label=False
|
174 |
)
|
|
|
161 |
margin=False,
|
162 |
rounded=(False, True, True, False),
|
163 |
)
|
164 |
+
task = gr.Dropdown(label="task",
|
165 |
+
choices=[
|
166 |
+
'text_summarization',
|
167 |
+
'copywriting_generation',
|
168 |
+
'novel_continuation',
|
169 |
+
'answer_generation',
|
170 |
+
'couplet_continuation',
|
171 |
+
'composition_generation',
|
172 |
+
'text_cloze'
|
173 |
+
],
|
174 |
+
value='text_summarization')
|
175 |
+
|
176 |
+
min_dec_len = gr.Number(label="min_dec_len", value=1, interactive=True)
|
177 |
+
seq_len = gr.Number(label="seq_len", value=128, nteractive=True)
|
178 |
+
topp = gr.Number(label="topp", value=1.0, interactive=True, precision=1)
|
179 |
+
penalty_score = gr.Number(label="penalty_score", value=1.0, interactive=True, precision=1)
|
180 |
+
|
181 |
text_gen = gr.Text(
|
182 |
value='εεεεε', label="Generated images", show_label=False
|
183 |
)
|