broadfield commited on
Commit
0ec68ea
·
verified ·
1 Parent(s): e4f0f19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,7 +96,7 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
96
  #prompt=f"We just completed role:{role}, now choose the next tool to complete the task:{prompt}, or COMPLETE"
97
  for response in stream:
98
  output += response.token.text
99
- #print(output)
100
  yield output
101
  yield history
102
  yield prompt
@@ -196,7 +196,7 @@ def agent(prompt_in,history,mod=2):
196
  fn="NONE"
197
  if 'CREATE_FILE' in fn:
198
  print('CREATE_FILE called')
199
- out_w =generate(com,history,mod=mod,tok=None,seed=seed,role="CREATE_FILE")
200
  build_space(out_w[0],out_w[1],out_w[2])
201
  elif 'IMAGE' in fn:
202
  print('IMAGE called')
 
96
  #prompt=f"We just completed role:{role}, now choose the next tool to complete the task:{prompt}, or COMPLETE"
97
  for response in stream:
98
  output += response.token.text
99
+ print(output)
100
  yield output
101
  yield history
102
  yield prompt
 
196
  fn="NONE"
197
  if 'CREATE_FILE' in fn:
198
  print('CREATE_FILE called')
199
+ out_w =generate(com,history,mod=mod,tok=None,seed=seed,role="CREATE_FILE",data=in_data)
200
  build_space(out_w[0],out_w[1],out_w[2])
201
  elif 'IMAGE' in fn:
202
  print('IMAGE called')