steveagi commited on
Commit
cb39903
·
1 Parent(s): 17f643b

fix a bug (local var)

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -24,17 +24,20 @@ functionality_list = [
24
  "json",
25
  ]
26
 
27
- space = 'stevez-bbc123'
28
- # space = 'stevez-test-public'
29
 
30
  def run(hf_token, service, game, functionality, nlp_command):
 
 
 
31
  # reuse hf_token field as json string
32
  token, user_name, redirect, _ = extract(hf_token)
33
  if user_name is None:
34
  user_name = '__fake__'
35
  if redirect is not None:
 
36
  space = redirect
37
 
 
38
  if token is None or token == '':
39
  return 'please specify hf token'
40
 
 
24
  "json",
25
  ]
26
 
 
 
27
 
28
  def run(hf_token, service, game, functionality, nlp_command):
29
+ space = 'stevez-bbc123'
30
+ # space = 'stevez-test-public'
31
+
32
  # reuse hf_token field as json string
33
  token, user_name, redirect, _ = extract(hf_token)
34
  if user_name is None:
35
  user_name = '__fake__'
36
  if redirect is not None:
37
+ print(space)
38
  space = redirect
39
 
40
+ print(space)
41
  if token is None or token == '':
42
  return 'please specify hf token'
43