Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import os
|
|
4 |
|
5 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
6 |
|
7 |
-
|
|
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
prompt = secret_prompt
|
|
|
4 |
|
5 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
6 |
|
7 |
+
# Setze einen Standardwert, falls SECRET_PROMPT nicht gesetzt ist
|
8 |
+
secret_prompt = os.getenv("SECRET_PROMPT", "Default prompt: ")
|
9 |
|
10 |
def format_prompt(message, history):
|
11 |
prompt = secret_prompt
|