Spaces:
Running
Running
fix for handling empty credentials
Browse files
app.py
CHANGED
@@ -72,10 +72,10 @@ def start_experiment(
|
|
72 |
|
73 |
|
74 |
def get_experiment(experiment_state):
|
75 |
-
api_key = experiment_state
|
76 |
-
workspace = experiment_state
|
77 |
-
project = experiment_state
|
78 |
-
experiment_name = experiment_state
|
79 |
|
80 |
try:
|
81 |
return comet_ml.API(api_key=api_key).get_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(
|