dn6 HF staff commited on
Commit
7c640e5
1 Parent(s): 7302200

more fixes for handling empty credentials

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
  )