ColeGuion commited on
Commit
4fe4bcb
1 Parent(s): bab84e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,8 +61,8 @@ with gr.Blocks() as demo:
61
  temperature = gr.Slider(minimum=0.1, maximum=100.0, value=0.7, step=0.1, label="Temperature")
62
  top_k = gr.Slider(minimum=0, maximum=200, value=50, step=1, label="Top-k")
63
  top_p = gr.Slider(minimum=0.1, maximum=1.0, value=1.0, step=0.05, label="Top-p (nucleus sampling)")
64
- guideScale = gr.Slider(minimum=0.1, maximum=50.0, value=1.0, step=1, label="Guidance Scale")
65
- no_repeat_ngram_size = gr.Slider(0, 20, 0, 1, "Limit N-grams of given Size")
66
  do_sample = gr.Checkbox(value=True, label="Do Sampling")
67
 
68
  submitBtn.click(respond, [prompt_box, max_tokens, min_tokens, num_beams, beam_groups, temperature, top_k, top_p, no_repeat_ngram_size, guideScale, do_sample], output_box)
 
61
  temperature = gr.Slider(minimum=0.1, maximum=100.0, value=0.7, step=0.1, label="Temperature")
62
  top_k = gr.Slider(minimum=0, maximum=200, value=50, step=1, label="Top-k")
63
  top_p = gr.Slider(minimum=0.1, maximum=1.0, value=1.0, step=0.05, label="Top-p (nucleus sampling)")
64
+ guideScale = gr.Slider(minimum=0.1, maximum=50.0, value=1.0, step=0.1, label="Guidance Scale")
65
+ no_repeat_ngram_size = gr.Slider(0, 20, value=0, step=1, label="Limit N-grams of given Size")
66
  do_sample = gr.Checkbox(value=True, label="Do Sampling")
67
 
68
  submitBtn.click(respond, [prompt_box, max_tokens, min_tokens, num_beams, beam_groups, temperature, top_k, top_p, no_repeat_ngram_size, guideScale, do_sample], output_box)