Spaces:
Sleeping
Sleeping
fix: Fixed runtime crash due to uninitialized variable
Browse files
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> "
|