Tawkat commited on
Commit
1035736
1 Parent(s): 5514990

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,7 @@ def format_prompt(message, history):
18
  return prompt
19
 
20
  def generate(
21
- prompt, history, temperature=0.9, max_new_tokens=2048, top_p=0.95, repetition_penalty=1.0,
22
  ):
23
  temperature = float(temperature)
24
  if temperature < 1e-2:
@@ -57,9 +57,9 @@ additional_inputs=[
57
  ),
58
  gr.Slider(
59
  label="Max new tokens",
60
- value=2048,
61
  minimum=0,
62
- maximum=1048,
63
  step=64,
64
  interactive=True,
65
  info="The maximum numbers of new tokens",
 
18
  return prompt
19
 
20
  def generate(
21
+ prompt, history, temperature=0.9, max_new_tokens=1510, top_p=0.95, repetition_penalty=1.0,
22
  ):
23
  temperature = float(temperature)
24
  if temperature < 1e-2:
 
57
  ),
58
  gr.Slider(
59
  label="Max new tokens",
60
+ value=1510,
61
  minimum=0,
62
+ maximum=1510,
63
  step=64,
64
  interactive=True,
65
  info="The maximum numbers of new tokens",