Jiang
Beracles
commited on
fix url of ai (#21)
Browse filesCo-authored-by: Beracles <zhoujiang45@qq.com>
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 |
-
|
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):
|