Spaces:
Sleeping
Sleeping
more fixes for handling empty credentials
Browse files
app.py
CHANGED
@@ -72,12 +72,12 @@ def start_experiment(
|
|
72 |
|
73 |
|
74 |
def get_experiment(experiment_state):
|
75 |
-
api_key = experiment_state.get("api_key")
|
76 |
-
workspace = experiment_state.get("workspace")
|
77 |
-
project = experiment_state.get("project_name")
|
78 |
-
experiment_name = experiment_state.get("experiment")
|
79 |
-
|
80 |
try:
|
|
|
|
|
|
|
|
|
|
|
81 |
return comet_ml.API(api_key=api_key).get_experiment(
|
82 |
workspace=workspace, project_name=project, experiment=experiment_name
|
83 |
)
|
|
|
72 |
|
73 |
|
74 |
def get_experiment(experiment_state):
|
|
|
|
|
|
|
|
|
|
|
75 |
try:
|
76 |
+
api_key = experiment_state.get("api_key")
|
77 |
+
workspace = experiment_state.get("workspace")
|
78 |
+
project = experiment_state.get("project_name")
|
79 |
+
experiment_name = experiment_state.get("experiment")
|
80 |
+
|
81 |
return comet_ml.API(api_key=api_key).get_experiment(
|
82 |
workspace=workspace, project_name=project, experiment=experiment_name
|
83 |
)
|