Spaces:
Sleeping
Sleeping
HarshanaLF
commited on
Commit
•
d35aef4
1
Parent(s):
8c7374c
update
Browse files
app.py
CHANGED
@@ -13,8 +13,10 @@ def client_fn(model):
|
|
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]
|
17 |
-
|
|
|
|
|
18 |
# Function to generate model responses
|
19 |
def models(text, model="Mixtral 8x7B"):
|
20 |
client = client_fn(model)
|
|
|
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 |
+
"Start with a greeting if the user initiates the conversation. "
|
19 |
+
"[QUESTION]")
|
20 |
# Function to generate model responses
|
21 |
def models(text, model="Mixtral 8x7B"):
|
22 |
client = client_fn(model)
|