Spaces:
Running
Running
Commit
•
2f8989d
1
Parent(s):
504fd0f
test
Browse files
app.py
CHANGED
@@ -75,11 +75,14 @@ def run_benchmark(kwargs, oauth_token: gr.OAuthToken):
|
|
75 |
elif "." in key.label:
|
76 |
backend, argument = key.label.split(".")
|
77 |
configs[backend][argument] = value
|
78 |
-
elif "kwargs" in key.label:
|
79 |
-
kwargs[key.label] = eval(value)
|
80 |
else:
|
81 |
continue
|
82 |
|
|
|
|
|
|
|
|
|
|
|
83 |
configs["process"] = ProcessConfig(**configs.pop("process"))
|
84 |
configs["inference"] = InferenceConfig(**configs.pop("inference"))
|
85 |
|
|
|
75 |
elif "." in key.label:
|
76 |
backend, argument = key.label.split(".")
|
77 |
configs[backend][argument] = value
|
|
|
|
|
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"))
|
88 |
|