wop commited on
Commit
0ebe634
·
verified ·
1 Parent(s): 5b2c683

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def format_prompt(message, history):
16
  prompt += f"[INST] {message} [/INST]"
17
  return prompt
18
 
19
- def generate(prompt="Hello there BibleAI", history, temperature=0.9, max_new_tokens=2048, top_p=0.95, repetition_penalty=1.0):
20
  temperature = float(temperature)
21
  if temperature < 1e-2:
22
  temperature = 1e-2
 
16
  prompt += f"[INST] {message} [/INST]"
17
  return prompt
18
 
19
+ def generate(history, prompt="Hello there BibleAI", temperature=0.9, max_new_tokens=2048, top_p=0.95, repetition_penalty=1.0):
20
  temperature = float(temperature)
21
  if temperature < 1e-2:
22
  temperature = 1e-2