dn6 HF staff commited on
Commit
7302200
·
1 Parent(s): fca694c

fix for handling empty credentials

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -72,10 +72,10 @@ def start_experiment(
72
 
73
 
74
  def get_experiment(experiment_state):
75
- api_key = experiment_state["api_key"]
76
- workspace = experiment_state["workspace"]
77
- project = experiment_state["project_name"]
78
- experiment_name = experiment_state["experiment"]
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(