Skip to content

Commit 3f36375

Browse files
author
tastelikefeet
committed
fix
1 parent df3c583 commit 3f36375

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

swift/ui/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def wrapper(*args, **kwargs):
3232
if builder is not None:
3333
choices = base_builder.choice(elem_id)
3434
if choices:
35+
choices = [str(choice) if choice is not None else None for choice in choices]
3536
kwargs['choices'] = choices
3637

3738
if not isinstance(self, (Tab, TabItem, Accordion)) and 'interactive' not in kwargs: # noqa

swift/ui/llm_export/llm_export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ def export_model(cls, *args):
188188
run_command, export_args, log_file = cls.export(*args)
189189
os.system(run_command)
190190
time.sleep(2)
191-
return gr.update(open=True), ExportRuntime.refresh_tasks(log_file), [None]
191+
return gr.update(open=True), ExportRuntime.refresh_tasks(log_file)

0 commit comments

Comments
 (0)