Spaces:
Runtime error
Runtime error
NimaBoscarino
commited on
Commit
•
15e7787
1
Parent(s):
8c32d81
Trainer URL change
Browse files- app.py +2 -2
- substra_launcher.py +1 -1
app.py
CHANGED
@@ -24,13 +24,13 @@ async def launch_experiment(hospital_a, hospital_b):
|
|
24 |
hospital_b=hospital_b,
|
25 |
))
|
26 |
|
27 |
-
url = f"https://hf.space/
|
28 |
|
29 |
return (
|
30 |
gr.Button.update(interactive=False),
|
31 |
gr.Markdown.update(
|
32 |
visible=True,
|
33 |
-
value=f"Your experiment is available at [hf.space/
|
34 |
)
|
35 |
)
|
36 |
|
|
|
24 |
hospital_b=hospital_b,
|
25 |
))
|
26 |
|
27 |
+
url = f"https://hf.space/owkin/trainer-{experiment_id}"
|
28 |
|
29 |
return (
|
30 |
gr.Button.update(interactive=False),
|
31 |
gr.Markdown.update(
|
32 |
visible=True,
|
33 |
+
value=f"Your experiment is available at [hf.space/owkin/trainer-{experiment_id}]({url})!"
|
34 |
)
|
35 |
)
|
36 |
|
substra_launcher.py
CHANGED
@@ -5,7 +5,7 @@ async def launch_substra_space(
|
|
5 |
hf_api: HfApi, repo_id: str,
|
6 |
hospital_a: int, hospital_b: int,
|
7 |
) -> RepoUrl:
|
8 |
-
repo_id = "
|
9 |
|
10 |
repo_url = hf_api.create_repo(
|
11 |
repo_id=repo_id,
|
|
|
5 |
hf_api: HfApi, repo_id: str,
|
6 |
hospital_a: int, hospital_b: int,
|
7 |
) -> RepoUrl:
|
8 |
+
repo_id = "owkin/trainer-" + repo_id
|
9 |
|
10 |
repo_url = hf_api.create_repo(
|
11 |
repo_id=repo_id,
|