broadfield commited on
Commit
025291b
·
verified ·
1 Parent(s): f64fa83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -21,6 +21,8 @@ def format_prompt(message, history):
21
  return prompt
22
 
23
  def generate(prompt,history):
 
 
24
  seed = random.randint(1,9999999999999)
25
  print(seed)
26
  system_prompt = prompts.ASSISTANT
 
21
  return prompt
22
 
23
  def generate(prompt,history):
24
+ if not history:
25
+ history=[()]
26
  seed = random.randint(1,9999999999999)
27
  print(seed)
28
  system_prompt = prompts.ASSISTANT