Spaces:
Paused
Paused
Alignment-Lab-AI
commited on
Commit
•
d3a0467
1
Parent(s):
54ead71
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ print(os.environ)
|
|
8 |
openai.api_base = os.environ.get("OPENAI_API_BASE")
|
9 |
openai.api_key = os.environ.get("OPENAI_API_KEY")
|
10 |
|
11 |
-
BASE_SYSTEM_MESSAGE = """
|
12 |
|
13 |
def make_prediction(prompt, max_tokens=None, temperature=None, top_p=None, top_k=None, repetition_penalty=None):
|
14 |
completion = openai.Completion.create(model="Open-Orca/LlongOrca-13B-16k", prompt=prompt, max_tokens=max_tokens, temperature=temperature, top_p=top_p, top_k=top_k, repetition_penalty=repetition_penalty, stream=True, stop=["</s>", "<|im_end|>"])
|
|
|
8 |
openai.api_base = os.environ.get("OPENAI_API_BASE")
|
9 |
openai.api_key = os.environ.get("OPENAI_API_KEY")
|
10 |
|
11 |
+
BASE_SYSTEM_MESSAGE = """YOU ALWAYS FOLLOW INSTRUCTIONS WHEN GIVEN, YOU DO NOT GIVE MORE INFORMATION THAT WHAT YOU ARE ASKED UNLESS ITS IMPORTANT"""
|
12 |
|
13 |
def make_prediction(prompt, max_tokens=None, temperature=None, top_p=None, top_k=None, repetition_penalty=None):
|
14 |
completion = openai.Completion.create(model="Open-Orca/LlongOrca-13B-16k", prompt=prompt, max_tokens=max_tokens, temperature=temperature, top_p=top_p, top_k=top_k, repetition_penalty=repetition_penalty, stream=True, stop=["</s>", "<|im_end|>"])
|