joys631 commited on
Commit
0548d98
1 Parent(s): 9358411

who wouldve thought i needed to debug on hf

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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