Jiang Beracles commited on
Commit
7a375af
·
unverified ·
1 Parent(s): 5bf3b30

fix url of ai (#21)

Browse files

Co-authored-by: Beracles <zhoujiang45@qq.com>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def run(hf_token, service, game, functionality, nlp_command):
50
  global ai
51
  if redirect is not None:
52
  ai = redirect
53
-
54
  if token is None or token == "":
55
  return "please specify hf token"
56
 
@@ -82,7 +82,7 @@ def run(hf_token, service, game, functionality, nlp_command):
82
  game,
83
  functionality,
84
  nlp_command,
85
- ai,
86
  token,
87
  )
88
  if isinstance(outp, str):
 
50
  global ai
51
  if redirect is not None:
52
  ai = redirect
53
+ ai_url = f"https://{ai}.hf.space"
54
  if token is None or token == "":
55
  return "please specify hf token"
56
 
 
82
  game,
83
  functionality,
84
  nlp_command,
85
+ ai_url,
86
  token,
87
  )
88
  if isinstance(outp, str):