Spaces:
Sleeping
Sleeping
Commit
·
eec9db2
1
Parent(s):
b001e7b
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def get_manual_content():
|
|
31 |
|
32 |
def format_prompt(message, history):
|
33 |
global manual_content
|
34 |
-
if manual_content is None or not history or not any(user_prompt for user_prompt, _ in history):
|
35 |
-
|
36 |
prompt = "<s>"
|
37 |
for user_prompt, bot_response in history:
|
38 |
prompt += f"[INST] {user_prompt} [/INST]"
|
|
|
31 |
|
32 |
def format_prompt(message, history):
|
33 |
global manual_content
|
34 |
+
#if manual_content is None or not history or not any(user_prompt for user_prompt, _ in history):
|
35 |
+
get_manual_content()
|
36 |
prompt = "<s>"
|
37 |
for user_prompt, bot_response in history:
|
38 |
prompt += f"[INST] {user_prompt} [/INST]"
|