Update main.py
Browse files
main.py
CHANGED
@@ -18,6 +18,11 @@ class Item(BaseModel):
|
|
18 |
repetition_penalty: float = 1.0
|
19 |
|
20 |
def format_prompt(message, history):
|
|
|
|
|
|
|
|
|
|
|
21 |
prompt = "<s>"
|
22 |
for user_prompt, bot_response in history:
|
23 |
prompt += f"[INST] {user_prompt} [/INST]"
|
|
|
18 |
repetition_penalty: float = 1.0
|
19 |
|
20 |
def format_prompt(message, history):
|
21 |
+
print("````")
|
22 |
+
print(message)
|
23 |
+
print("++++")
|
24 |
+
print(history)
|
25 |
+
print("````")
|
26 |
prompt = "<s>"
|
27 |
for user_prompt, bot_response in history:
|
28 |
prompt += f"[INST] {user_prompt} [/INST]"
|