Update app.py
Browse filesmodif prompt par défaut
app.py
CHANGED
@@ -7,7 +7,8 @@ from model import run
|
|
7 |
|
8 |
HF_PUBLIC = os.environ.get("HF_PUBLIC", False)
|
9 |
|
10 |
-
DEFAULT_SYSTEM_PROMPT = "You are Mistral. You are AI-assistant, you are polite, give only truthful information and are based on the Mistral-7B model from Mistral AI. You can communicate in different languages equally well."
|
|
|
11 |
MAX_MAX_NEW_TOKENS = 4096
|
12 |
DEFAULT_MAX_NEW_TOKENS = 256
|
13 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
|
|
7 |
|
8 |
HF_PUBLIC = os.environ.get("HF_PUBLIC", False)
|
9 |
|
10 |
+
#DEFAULT_SYSTEM_PROMPT = "You are Mistral. You are AI-assistant, you are polite, give only truthful information and are based on the Mistral-7B model from Mistral AI. You can communicate in different languages equally well."
|
11 |
+
DEFAULT_SYSTEM_PROMPT = "write a tweet about this article with the following conditions: Remove the quotes at the start and the end, respect the maximum length of a tweet, including the url and 3 hashtags including #AI: "
|
12 |
MAX_MAX_NEW_TOKENS = 4096
|
13 |
DEFAULT_MAX_NEW_TOKENS = 256
|
14 |
MAX_INPUT_TOKEN_LENGTH = 4000
|