Spaces:
Sleeping
Sleeping
who wouldve thought i needed to debug on hf
Browse files
app.py
CHANGED
@@ -19,7 +19,8 @@ def format_sys_prompt(username, botname, botpersonality, botexamplechat, chatsit
|
|
19 |
def generate(
|
20 |
prompt, history, username, botname, botpersonality, botexamplechat, chatsituation, shouldoverridehistory, historyoverride, max_new_tokens=1024, temperature=1.2, top_p=0.95, repetition_penalty=1.0,
|
21 |
):
|
22 |
-
|
|
|
23 |
temperature = float(temperature)
|
24 |
if temperature < 1e-2:
|
25 |
temperature = 1e-2
|
|
|
19 |
def generate(
|
20 |
prompt, history, username, botname, botpersonality, botexamplechat, chatsituation, shouldoverridehistory, historyoverride, max_new_tokens=1024, temperature=1.2, top_p=0.95, repetition_penalty=1.0,
|
21 |
):
|
22 |
+
print(history)
|
23 |
+
print(historyoverride)
|
24 |
temperature = float(temperature)
|
25 |
if temperature < 1e-2:
|
26 |
temperature = 1e-2
|