IlyasMoutawwakil HF staff commited on
Commit
a919d64
1 Parent(s): 2f8989d
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -78,10 +78,10 @@ def run_benchmark(kwargs, oauth_token: gr.OAuthToken):
78
  else:
79
  continue
80
 
81
- for config in configs.keys():
82
- for key, value in configs[config].items():
83
- if "kwargs" in key:
84
- configs[config][key] = eval(value)
85
 
86
  configs["process"] = ProcessConfig(**configs.pop("process"))
87
  configs["inference"] = InferenceConfig(**configs.pop("inference"))
 
78
  else:
79
  continue
80
 
81
+ for key in configs.keys():
82
+ for k, v in configs[key].items():
83
+ if "kwargs" in k:
84
+ configs[key][k] = eval(v)
85
 
86
  configs["process"] = ProcessConfig(**configs.pop("process"))
87
  configs["inference"] = InferenceConfig(**configs.pop("inference"))