Elijahbodden commited on
Commit
8d75482
·
verified ·
1 Parent(s): 88cc46f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -53,6 +53,7 @@ def respond(
53
  presence_penalty,
54
  max_tokens
55
  ):
 
56
 
57
  messages = presets[preset].copy()
58
  for val in history:
@@ -90,7 +91,7 @@ ci = gr.ChatInterface(
90
  respond,
91
  additional_inputs_accordion=gr.Accordion(label="Options", open=True),
92
  additional_inputs=[
93
- gr.Radio(presets.keys(), label="Personality preset", info="VERY SLIGHTLY influence the model's personality [WARNING, IF YOU CHANGE THIS WHILE THERE ARE MESSAGES IN THE CHAT THE MODEL WILL BECOME VERY SLOW]", value="Default"),
94
  # ("The model will become slow" is bc this uncaches the prompt and prompt processing is a big part of the generation time)
95
  gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Min_p", info="Lower values give it more \"personality\""),
96
  gr.Slider(minimum=0.1, maximum=4.0, value=1.5, step=0.1, label="Temperature", info="How chaotic should the model be?"),
 
53
  presence_penalty,
54
  max_tokens
55
  ):
56
+ print(preset, temperature, min_p, lp_start, lp_decay, frequency_penalty, presence_penalty, max_tokens)
57
 
58
  messages = presets[preset].copy()
59
  for val in history:
 
91
  respond,
92
  additional_inputs_accordion=gr.Accordion(label="Options", open=True),
93
  additional_inputs=[
94
+ gr.Radio(presets.keys(), label="Personality preset", info="Slightly influence the model's personality [WARNING, IF YOU CHANGE THIS WHILE THERE ARE MESSAGES IN THE CHAT THE MODEL WILL BECOME VERY SLOW]", value="Default"),
95
  # ("The model will become slow" is bc this uncaches the prompt and prompt processing is a big part of the generation time)
96
  gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Min_p", info="Lower values give it more \"personality\""),
97
  gr.Slider(minimum=0.1, maximum=4.0, value=1.5, step=0.1, label="Temperature", info="How chaotic should the model be?"),