Skip to content

Commit a756608

Browse files
GaoLeiAOliverBryant
authored andcommitted
Remove None to keep the code clean
1 parent 7a0caa6 commit a756608

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xinference/ui/gradio/chat_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,11 @@ def generate_html_audio(audio_path):
503503
message = {"role": "user", "content": text}
504504
history = history + [message]
505505
bot = bot + [[display_content, None]]
506-
return history, bot, "", None, None, None, None
506+
return history, bot, "", None, None, None
507507

508508
def clear_history():
509509
logger.debug("Clear history.")
510-
return [], None, "", None, None, None, None
510+
return [], None, "", None, None, None
511511

512512
def update_button(text):
513513
return gr.update(interactive=bool(text))

0 commit comments

Comments
 (0)