broadfield commited on
Commit
e59f9eb
1 Parent(s): 02fa11b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -239,7 +239,7 @@ def agent(prompt_in,history,mod=2,tok_in=""):
239
  print('ret1',ret1)
240
  print('ret2',ret2)
241
  build_out = build_space(repo_,ret1,ret2,access_token=tok_in)
242
- if build_out[0].content=="ENTER A HUGGINGFACE TOKEN":
243
  yield [{'role':'assistant','content':"ENTER A HUGGINGFACE TOKEN"}]
244
  go=False
245
  break
 
239
  print('ret1',ret1)
240
  print('ret2',ret2)
241
  build_out = build_space(repo_,ret1,ret2,access_token=tok_in)
242
+ if build_out[0]["content"]=="ENTER A HUGGINGFACE TOKEN":
243
  yield [{'role':'assistant','content':"ENTER A HUGGINGFACE TOKEN"}]
244
  go=False
245
  break