We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b569f82 commit 1afb266Copy full SHA for 1afb266
swanlab/api/experiment.py
@@ -11,7 +11,6 @@
11
12
from swanlab.api.base import ApiBase, ApiHTTP
13
from swanlab.api.types import ApiResponse, Experiment, Pagination
14
-from swanlab.package import get_host_api
15
16
try:
17
from pandas import DataFrame
@@ -180,12 +179,7 @@ def get_metrics(
180
179
if resp.errmsg:
181
continue
182
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
+ url = resp.data.get("url", "")
189
df = pd.read_csv(url, index_col=0)
190
191
if idx == 0:
0 commit comments