anaspro
commited on
Commit
·
8a88ae1
1
Parent(s):
a5933da
updatE
Browse files
app.py
CHANGED
|
@@ -19,8 +19,15 @@ DEFAULT_SYSTEM_PROMPT = load_system_prompt()
|
|
| 19 |
model_path = "inceptionai/jais-adapted-7b-chat"
|
| 20 |
|
| 21 |
# Jais chat prompts from documentation
|
| 22 |
-
prompt_eng = "### Instruction:Your name is 'Jais', and you are named after Jebel Jais, the highest mountain in UAE. You were made by 'Inception' in the UAE. You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Complete the conversation between [|Human|] and [|AI|]
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# إذا كان فيه HF_TOKEN في البيئة
|
| 26 |
hf_token = os.getenv("HF_TOKEN")
|
|
|
|
| 19 |
model_path = "inceptionai/jais-adapted-7b-chat"
|
| 20 |
|
| 21 |
# Jais chat prompts from documentation
|
| 22 |
+
prompt_eng = """### Instruction:Your name is 'Jais', and you are named after Jebel Jais, the highest mountain in UAE. You were made by 'Inception' in the UAE. You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Complete the conversation between [|Human|] and [|AI|]:
|
| 23 |
+
### Input: [|Human|] {Question}
|
| 24 |
+
[|AI|]
|
| 25 |
+
### Response :"""
|
| 26 |
+
|
| 27 |
+
prompt_ar = """### Instruction:اسمك "جيس" وسميت على اسم جبل جيس اعلى جبل في الامارات. تم بنائك بواسطة Inception في الإمارات. أنت مساعد مفيد ومحترم وصادق. أجب دائمًا بأكبر قدر ممكن من المساعدة، مع الحفاظ على البقاء أمناً. أكمل المحادثة بين [|Human|] و[|AI|] :
|
| 28 |
+
### Input:[|Human|] {Question}
|
| 29 |
+
[|AI|]
|
| 30 |
+
### Response :"""
|
| 31 |
|
| 32 |
# إذا كان فيه HF_TOKEN في البيئة
|
| 33 |
hf_token = os.getenv("HF_TOKEN")
|