Spaces:
Sleeping
Sleeping
Commit
·
5433a48
1
Parent(s):
d44c352
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def get_manual_content():
|
|
15 |
|
16 |
def format_prompt(message, history):
|
17 |
global manual_content
|
18 |
-
if manual_content is None or not history:
|
19 |
get_manual_content()
|
20 |
prompt = "<s>"
|
21 |
if manual_content:
|
|
|
15 |
|
16 |
def format_prompt(message, history):
|
17 |
global manual_content
|
18 |
+
if manual_content is None or not history or not any(user_prompt for user_prompt, _ in history):
|
19 |
get_manual_content()
|
20 |
prompt = "<s>"
|
21 |
if manual_content:
|