futranbg commited on
Commit
c3acc2f
1 Parent(s): 2147ae4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def generate(
50
  if temperature < 1e-2:
51
  temperature = 1e-2
52
  top_p = float(top_p)
53
- # global seed
54
  generate_kwargs = dict(
55
  temperature=temperature,
56
  max_new_tokens=max_new_tokens,
@@ -60,7 +60,7 @@ def generate(
60
  do_sample=True,
61
  seed=seed,
62
  )
63
- # seed = seed + 1
64
  formatted_prompt = format_prompt(prompt, history, system_prompt)
65
 
66
  try:
 
50
  if temperature < 1e-2:
51
  temperature = 1e-2
52
  top_p = float(top_p)
53
+ global seed
54
  generate_kwargs = dict(
55
  temperature=temperature,
56
  max_new_tokens=max_new_tokens,
 
60
  do_sample=True,
61
  seed=seed,
62
  )
63
+ seed = seed + 1
64
  formatted_prompt = format_prompt(prompt, history, system_prompt)
65
 
66
  try: