Spaces:
Sleeping
Sleeping
Commit
·
3f19f00
1
Parent(s):
d58732f
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,15 +28,8 @@ llm = HuggingFaceHub(repo_id=repo_id,
|
|
| 28 |
"top_k":50,
|
| 29 |
"top_p":0.95, "eos_token_id":49155})
|
| 30 |
|
| 31 |
-
#prompt_template = """You are a very helpful AI assistant. Please response to the user's input question with as many details as possible.
|
| 32 |
-
#Question: {user_question}
|
| 33 |
-
#Helpful AI Repsonse:
|
| 34 |
-
#"""
|
| 35 |
-
|
| 36 |
prompt_template = """
|
| 37 |
-
<<SYS>>You are a helpful, respectful and honest assistant.
|
| 38 |
-
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
|
| 39 |
-
In each conversation, question is placed after [INST] while your answer should be placed after [/INST].<</SYS>>
|
| 40 |
[INST] {user_question} [/INST]
|
| 41 |
assistant:
|
| 42 |
"""
|
|
|
|
| 28 |
"top_k":50,
|
| 29 |
"top_p":0.95, "eos_token_id":49155})
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
prompt_template = """
|
| 32 |
+
<<SYS>>You are a helpful, respectful and honest assistant. If you don't know the answer to a question, please don't share false information.In each conversation, question is placed after [INST] while your answer should be placed after [/INST].<</SYS>>
|
|
|
|
|
|
|
| 33 |
[INST] {user_question} [/INST]
|
| 34 |
assistant:
|
| 35 |
"""
|