reonjy commited on
Commit
b911bd1
1 Parent(s): d5a62b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ def format_prompt(message, history):
15
  return prompt
16
 
17
  def generate(
18
- prompt, history, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
19
  ):
20
  temperature = float(temperature)
21
  if temperature < 1e-2:
@@ -54,7 +54,7 @@ additional_inputs=[
54
  ),
55
  gr.Slider(
56
  label="Max new tokens",
57
- value=256,
58
  minimum=0,
59
  maximum=1048,
60
  step=64,
 
15
  return prompt
16
 
17
  def generate(
18
+ prompt, history, temperature=0.9, max_new_tokens=1048, top_p=0.95, repetition_penalty=1.0,
19
  ):
20
  temperature = float(temperature)
21
  if temperature < 1e-2:
 
54
  ),
55
  gr.Slider(
56
  label="Max new tokens",
57
+ value=1048,
58
  minimum=0,
59
  maximum=1048,
60
  step=64,