ecyht2 commited on
Commit
bbc843e
1 Parent(s): bddf825

fix: Fixed runtime crash due to uninitialized variable

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ def format_prompt(message, history):
18
  logging.debug("Input Message: %s", message)
19
  logging.debug("Input History: %s", history)
20
 
 
21
  for user_prompt, bot_response in history:
22
  prompt += f"<s> [INST] {user_prompt} [/INST]"
23
  prompt += f" {bot_response}</s> "
 
18
  logging.debug("Input Message: %s", message)
19
  logging.debug("Input History: %s", history)
20
 
21
+ prompt = ""
22
  for user_prompt, bot_response in history:
23
  prompt += f"<s> [INST] {user_prompt} [/INST]"
24
  prompt += f" {bot_response}</s> "