Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,9 @@ pp=PyPiper()
|
|
9 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
10 |
|
11 |
def format_prompt(message, history):
|
12 |
-
prompt = "<s>"
|
13 |
if history:
|
|
|
|
|
14 |
for user_prompt, bot_response in history:
|
15 |
#print (bot_response)
|
16 |
prompt += f"[INST] {user_prompt} [/INST]"
|
|
|
9 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
10 |
|
11 |
def format_prompt(message, history):
|
|
|
12 |
if history:
|
13 |
+
prompt = "<s>"
|
14 |
+
|
15 |
for user_prompt, bot_response in history:
|
16 |
#print (bot_response)
|
17 |
prompt += f"[INST] {user_prompt} [/INST]"
|