jm12138 commited on
Commit
242998f
Β·
1 Parent(s): 80492f0
Files changed (1) hide show
  1. app.py +17 -8
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", choices=[
165
- '水彩', 'ζ²Ήη”»', '粉笔画', 'ε‘ι€š', 'θœ‘η¬”η”»', 'ε„Ώη«₯η”»', 'ζŽ’η΄’ζ— ι™'], value='ζ²Ήη”»')
166
-
167
- min_dec_len = gr.Number(label="min_dec_len", value=1)
168
- seq_len = gr.Number(label="seq_len", value=128)
169
- topp = gr.Number(label="topp", value=1.0)
170
- penalty_score = gr.Number(label="penalty_score", value=1.0)
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
  )