broadfield commited on
Commit
7b7d79c
·
verified ·
1 Parent(s): 68a7c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -150,13 +150,13 @@ def build_space(repo_name,file_name,file_content,access_token=""):
150
  return [{'role':'assistant','content': 'There was an Error: '+e}]
151
 
152
 
153
- def agent(prompt,history,mod=[2]):
154
- mod=mod[0]
155
  print(prompt)
156
  print('mod ',mod)
157
  in_data=[None,None,None,None,None,]
158
- in_data[0]=prompt['text']
159
- prompt=prompt['text']
160
  fn=""
161
  com=""
162
  go=True
 
150
  return [{'role':'assistant','content': 'There was an Error: '+e}]
151
 
152
 
153
+ def agent(prompt_in,history,mod_in=[2]):
154
+ mod=mod_in[0]
155
  print(prompt)
156
  print('mod ',mod)
157
  in_data=[None,None,None,None,None,]
158
+ in_data[0]=prompt_in['text']
159
+ prompt=prompt_in['text']
160
  fn=""
161
  com=""
162
  go=True