stmnk commited on
Commit
37863c7
·
1 Parent(s): b639e4c

add variation in default example values

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -198,7 +198,7 @@ iface = gr.Interface(
198
  gr.inputs.Slider(30, 200, default=100, label="Minimum Length (of the output summary, in tokens)"),
199
  gr.inputs.Slider(200, 500, default=350, label="Maximum Length (of the output summary, in tokens)"),
200
  gr.inputs.Slider(1, 7, default=3, label="Top K (tokens considered within the sample operation to create new text)"),
201
- gr.inputs.Slider(0, 100, default=80, label="Top P (probability threshold for next tokens in sample of new text, cumulative"),
202
  gr.inputs.Slider(0, 100, default=1, label="Temperature (of the sampling operation)"),
203
  gr.inputs.Slider(0, 100, default=70, label="Repetition Penalty (frequently previously used tokens are downsized)"),
204
  ],
@@ -213,7 +213,7 @@ _A model is given the task to generate natural language comments for a programmi
213
  For further details, see the [CodeXGLUE](https://github.com/microsoft/CodeXGLUE) benchmark dataset and open challenge for code intelligence.
214
  """,
215
  theme='grass',
216
- examples=[[tree_code,100,350,3,80,1,70],[insert_code,100,350,3,80,1,70],[display_code,100,350,3,80,1,70]],
217
  verbose=True,
218
  # show_tips=True
219
  )
 
198
  gr.inputs.Slider(30, 200, default=100, label="Minimum Length (of the output summary, in tokens)"),
199
  gr.inputs.Slider(200, 500, default=350, label="Maximum Length (of the output summary, in tokens)"),
200
  gr.inputs.Slider(1, 7, default=3, label="Top K (tokens considered within the sample operation to create new text)"),
201
+ gr.inputs.Slider(0, 100, default=80, label="Top P (probability threshold for next tokens in sample of new text, cumulative)"),
202
  gr.inputs.Slider(0, 100, default=1, label="Temperature (of the sampling operation)"),
203
  gr.inputs.Slider(0, 100, default=70, label="Repetition Penalty (frequently previously used tokens are downsized)"),
204
  ],
 
213
  For further details, see the [CodeXGLUE](https://github.com/microsoft/CodeXGLUE) benchmark dataset and open challenge for code intelligence.
214
  """,
215
  theme='grass',
216
+ examples=[[tree_code,50,200,2,70,10,80],[insert_code,100,250,3,90,20,90],[display_code,150,300,5,100,100,95]],
217
  verbose=True,
218
  # show_tips=True
219
  )