VictorSanh commited on
Commit
e784e7c
1 Parent(s): 3d07ea9

greedy default

Browse files
Files changed (1) hide show
  1. app_dialogue.py +3 -2
app_dialogue.py CHANGED
@@ -436,7 +436,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
436
  "Greedy",
437
  "Top P Sampling",
438
  ],
439
- value="Top P Sampling",
440
  label="Decoding strategy",
441
  interactive=True,
442
  )
@@ -446,6 +446,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
446
  value=0.4,
447
  step=0.1,
448
  interactive=True,
 
449
  label="Sampling temperature",
450
  info="Higher values will produce more diverse outputs.",
451
  )
@@ -464,7 +465,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
464
  value=0.8,
465
  step=0.01,
466
  interactive=True,
467
- visible=True,
468
  label="Top P",
469
  info="Higher values is equivalent to sampling more low-probability tokens.",
470
  )
 
436
  "Greedy",
437
  "Top P Sampling",
438
  ],
439
+ value="Greedy",
440
  label="Decoding strategy",
441
  interactive=True,
442
  )
 
446
  value=0.4,
447
  step=0.1,
448
  interactive=True,
449
+ visible=False,
450
  label="Sampling temperature",
451
  info="Higher values will produce more diverse outputs.",
452
  )
 
465
  value=0.8,
466
  step=0.01,
467
  interactive=True,
468
+ visible=False,
469
  label="Top P",
470
  info="Higher values is equivalent to sampling more low-probability tokens.",
471
  )