steveagi commited on
Commit
1f21301
·
1 Parent(s): 5fca651

no tuple return

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def run(hf_token, service, game, functionality, nlp_command):
126
  nlp_command, # hidden,
127
  api_name="/predict",
128
  )
129
- outp = json.loads(res[0])
130
  # add proxy version info to the output
131
  outp["proxy-version"] = proxy_version
132
  outp["user"] = user_name
 
126
  nlp_command, # hidden,
127
  api_name="/predict",
128
  )
129
+ outp = json.loads(res)
130
  # add proxy version info to the output
131
  outp["proxy-version"] = proxy_version
132
  outp["user"] = user_name