Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceClient
|
|
4 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
5 |
|
6 |
def format_prompt(message, history):
|
7 |
-
system_prompt = ("
|
8 |
prompt = f"<s>{system_prompt}"
|
9 |
for user_prompt, bot_response in history:
|
10 |
prompt += f"[USER] {user_prompt} [/USER]"
|
|
|
4 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
5 |
|
6 |
def format_prompt(message, history):
|
7 |
+
system_prompt = ("os.getenv("system_prompt")")
|
8 |
prompt = f"<s>{system_prompt}"
|
9 |
for user_prompt, bot_response in history:
|
10 |
prompt += f"[USER] {user_prompt} [/USER]"
|