|
@@ -523,7 +523,7 @@ def create_interface():
|
|
|
if shared.args.extensions is not None:
|
|
if shared.args.extensions is not None:
|
|
|
extensions_module.create_extensions_block()
|
|
extensions_module.create_extensions_block()
|
|
|
|
|
|
|
|
- for k in ['do_sample', 'temperature', 'top_p', 'typical_p', 'repetition_penalty', 'encoder_repetition_penalty', 'top_k', 'min_length', 'no_repeat_ngram_size', 'num_beams', 'penalty_alpha', 'length_penalty', 'early_stopping', 'max_new_tokens', 'seed', 'stop_at_newline', 'chat_prompt_size', 'chat_generation_attempts']:
|
|
|
|
|
|
|
+ for k in ['do_sample', 'temperature', 'top_p', 'typical_p', 'repetition_penalty', 'encoder_repetition_penalty', 'top_k', 'min_length', 'no_repeat_ngram_size', 'num_beams', 'penalty_alpha', 'length_penalty', 'early_stopping', 'max_new_tokens', 'seed', 'stop_at_newline', 'chat_prompt_size_slider', 'chat_generation_attempts']:
|
|
|
if k not in shared.gradio:
|
|
if k not in shared.gradio:
|
|
|
continue
|
|
continue
|
|
|
if type(shared.gradio[k]) in [gr.Checkbox, gr.Number]:
|
|
if type(shared.gradio[k]) in [gr.Checkbox, gr.Number]:
|