Omnibus commited on
Commit
15d9ca5
·
1 Parent(s): c2f3ad5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -61,7 +61,6 @@ def run_gpt(
61
  stop_tokens,
62
  max_tokens,
63
  seed,
64
- purpose,
65
  **prompt_kwargs,
66
  ):
67
  print(seed)
@@ -78,7 +77,7 @@ def run_gpt(
78
 
79
  content = PREFIX.format(
80
  timestamp=timestamp,
81
- purpose=purpose
82
  ) + prompt_template.format(**prompt_kwargs)
83
  if VERBOSE:
84
  print(LOG_PROMPT.format(content))
@@ -126,7 +125,7 @@ def compress_data(c, instruct, history):
126
  stop_tokens=["observation:", "task:", "action:", "thought:"],
127
  max_tokens=4096,
128
  seed=seed,
129
- purpose=instruct,
130
  knowledge=new_history,
131
  history=hist,
132
  )
@@ -141,7 +140,7 @@ def compress_data(c, instruct, history):
141
  stop_tokens=["observation:", "task:", "action:", "thought:"],
142
  max_tokens=8192,
143
  seed=seed,
144
- purpose="Compile report",
145
  knowledge=new_history,
146
  history="All data has been recieved.",
147
  )
 
61
  stop_tokens,
62
  max_tokens,
63
  seed,
 
64
  **prompt_kwargs,
65
  ):
66
  print(seed)
 
77
 
78
  content = PREFIX.format(
79
  timestamp=timestamp,
80
+ purpose="Compile the provided data and complete the users task"
81
  ) + prompt_template.format(**prompt_kwargs)
82
  if VERBOSE:
83
  print(LOG_PROMPT.format(content))
 
125
  stop_tokens=["observation:", "task:", "action:", "thought:"],
126
  max_tokens=4096,
127
  seed=seed,
128
+ direction=instruct,
129
  knowledge=new_history,
130
  history=hist,
131
  )
 
140
  stop_tokens=["observation:", "task:", "action:", "thought:"],
141
  max_tokens=8192,
142
  seed=seed,
143
+ direction=instruct,
144
  knowledge=new_history,
145
  history="All data has been recieved.",
146
  )