AjithKSenthil commited on
Commit
1ce9293
·
verified ·
1 Parent(s): f314b1b

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -159,7 +159,7 @@ with gr.Blocks() as demo:
159
  if user_id:
160
  return gr.update(visible=True), gr.update(visible=True), [user_id, initial_messages.copy()], "Registration successful, you can now login."
161
  else:
162
- return gr.update(visible=False), gr.update(visible(False)), [None, initial_messages.copy()], "Registration failed, try a different username."
163
 
164
  login_button.click(login, inputs=[username, password], outputs=[chat_input, chat_output, state, auth_message])
165
  register_button.click(register, inputs=[username, password], outputs=[chat_input, chat_output, state, auth_message])
 
159
  if user_id:
160
  return gr.update(visible=True), gr.update(visible=True), [user_id, initial_messages.copy()], "Registration successful, you can now login."
161
  else:
162
+ return gr.update(visible=False), gr.update(visible=False), [None, initial_messages.copy()], "Registration failed, try a different username."
163
 
164
  login_button.click(login, inputs=[username, password], outputs=[chat_input, chat_output, state, auth_message])
165
  register_button.click(register, inputs=[username, password], outputs=[chat_input, chat_output, state, auth_message])