Skip to content

Commit 1afb266

Browse files
committed
Revert "Update experiment.py"
This reverts commit b569f82.
1 parent b569f82 commit 1afb266

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

swanlab/api/experiment.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from swanlab.api.base import ApiBase, ApiHTTP
1313
from swanlab.api.types import ApiResponse, Experiment, Pagination
14-
from swanlab.package import get_host_api
1514

1615
try:
1716
from pandas import DataFrame
@@ -180,12 +179,7 @@ def get_metrics(
180179
if resp.errmsg:
181180
continue
182181

183-
url:str = resp.data.get("url", "")
184-
# 私有化环境可能不会携带 ip:https://github.com/SwanHubX/SwanLab/issues/1267
185-
if not (url.startswith('https://') or url.startswith('http://')):
186-
url = get_host_api() + url # url 已添加前缀 /
187-
188-
182+
url = resp.data.get("url", "")
189183
df = pd.read_csv(url, index_col=0)
190184

191185
if idx == 0:

0 commit comments

Comments
 (0)