Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def format_prompt(message, history, system_prompt=None):
|
|
12 |
prompt += f"[SYS] {system_prompt} [/SYS]"
|
13 |
prompt += f"[INST] {message} [/INST]"
|
14 |
return prompt
|
15 |
-
|
16 |
def generate(
|
17 |
prompt, history, system_prompt=None, temperature=0.2, max_new_tokens=1024, top_p=0.95, repetition_penalty=1.0,
|
18 |
):
|
|
|
12 |
prompt += f"[SYS] {system_prompt} [/SYS]"
|
13 |
prompt += f"[INST] {message} [/INST]"
|
14 |
return prompt
|
15 |
+
#Generate
|
16 |
def generate(
|
17 |
prompt, history, system_prompt=None, temperature=0.2, max_new_tokens=1024, top_p=0.95, repetition_penalty=1.0,
|
18 |
):
|