We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f726f commit b641ffdCopy full SHA for b641ffd
app_gradio/app.py
@@ -176,11 +176,11 @@ def dingo_demo(
176
executor = Executor.exec_map["local"](input_args)
177
summary = executor.execute().to_dict()
178
detail = executor.get_bad_info_list()
179
- dingo_id_list = []
+ dingo_id_set = set()
180
new_detail = []
181
for item in detail:
182
- if item['dingo_id'] not in dingo_id_list:
183
- dingo_id_list.append(item['dingo_id'])
+ if item['dingo_id'] not in dingo_id_set:
+ dingo_id_set.add(item['dingo_id'])
184
new_detail.append(item)
185
if summary['output_path']:
186
if remove_output == "true":
0 commit comments