Spaces:
Sleeping
Sleeping
Commit
·
a434a54
1
Parent(s):
3af3245
update
Browse files
app.py
CHANGED
@@ -12,12 +12,11 @@ def client_fn(model):
|
|
12 |
}
|
13 |
return InferenceClient(model_map.get(model, "mistralai/Mixtral-8x7B-Instruct-v0.1"))
|
14 |
|
15 |
-
# System instructions for the models to follow
|
16 |
system_instructions = ("[SYSTEM] You are an assistant designed to provide information, answer questions, and offer helpful advice. "
|
17 |
"Respond naturally and concisely to the user's queries. "
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
21 |
|
22 |
# Function to generate model responses
|
23 |
def models(text, model="Mixtral 8x7B"):
|
|
|
12 |
}
|
13 |
return InferenceClient(model_map.get(model, "mistralai/Mixtral-8x7B-Instruct-v0.1"))
|
14 |
|
|
|
15 |
system_instructions = ("[SYSTEM] You are an assistant designed to provide information, answer questions, and offer helpful advice. "
|
16 |
"Respond naturally and concisely to the user's queries. "
|
17 |
+
"Answer questions directly and avoid including unnecessary tags or information. "
|
18 |
+
"Begin with a greeting if the user initiates the conversation. "
|
19 |
+
"Here is the user's query: ")
|
20 |
|
21 |
# Function to generate model responses
|
22 |
def models(text, model="Mixtral 8x7B"):
|