masanorihirano commited on
Commit
42a7cb3
·
1 Parent(s): 724bbf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -194,7 +194,7 @@ def evaluate(
194
  )
195
  input_ids = inputs["input_ids"].to(device)
196
  generation_config = GenerationConfig(
197
- do_sample=True,
198
  temperature=temperature,
199
  top_p=top_p,
200
  top_k=top_k,
@@ -288,7 +288,7 @@ with gr.Blocks(
288
  maximum=1.0,
289
  value=0.7,
290
  step=0.05,
291
- interactive=True,
292
  label="Temperature",
293
  )
294
  max_tokens = gr.Slider(
 
194
  )
195
  input_ids = inputs["input_ids"].to(device)
196
  generation_config = GenerationConfig(
197
+ do_sample=False,
198
  temperature=temperature,
199
  top_p=top_p,
200
  top_k=top_k,
 
288
  maximum=1.0,
289
  value=0.7,
290
  step=0.05,
291
+ interactive=False,
292
  label="Temperature",
293
  )
294
  max_tokens = gr.Slider(