johann22 commited on
Commit
f0743df
·
1 Parent(s): 304f6e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,7 +53,7 @@ def run_gpt(
53
  purpose,
54
  **prompt_kwargs,
55
  ):
56
- #seed = random.randint(1,1111111111111111)
57
  print (seed)
58
  generate_kwargs = dict(
59
  temperature=1.0,
@@ -61,7 +61,7 @@ def run_gpt(
61
  top_p=0.99,
62
  repetition_penalty=1.0,
63
  do_sample=True,
64
- seed=310409319444068,
65
  )
66
 
67
 
@@ -91,7 +91,7 @@ def compress_history(purpose, task, history, directory):
91
  resp = run_gpt(
92
  COMPRESS_HISTORY_PROMPT,
93
  stop_tokens=["observation:", "task:", "action:", "thought:"],
94
- max_tokens=512,
95
  purpose=purpose,
96
  task=task,
97
  history=history,
 
53
  purpose,
54
  **prompt_kwargs,
55
  ):
56
+ seed = random.randint(1,1111111111111111)
57
  print (seed)
58
  generate_kwargs = dict(
59
  temperature=1.0,
 
61
  top_p=0.99,
62
  repetition_penalty=1.0,
63
  do_sample=True,
64
+ seed=seed,
65
  )
66
 
67
 
 
91
  resp = run_gpt(
92
  COMPRESS_HISTORY_PROMPT,
93
  stop_tokens=["observation:", "task:", "action:", "thought:"],
94
+ max_tokens=1024,
95
  purpose=purpose,
96
  task=task,
97
  history=history,