mojtabaa4 commited on
Commit
30b8a78
1 Parent(s): 2cf6549

add application files

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ with gr.Blocks(css=custom_css) as interface:
65
 
66
  is_valid, validation_message = validate_input(user_message)
67
  if not is_valid:
68
- history.append(("User", validation_message))
69
  return history, ""
70
 
71
  bot_reply = chatbot_interface(user_message)
@@ -75,4 +75,4 @@ with gr.Blocks(css=custom_css) as interface:
75
  # Connect the button click to the chat update function
76
  send_button.click(chat_update, [user_input, chatbot], [chatbot, user_input])
77
 
78
- interface.launch()
 
65
 
66
  is_valid, validation_message = validate_input(user_message)
67
  if not is_valid:
68
+ history.append((user_message, validation_message))
69
  return history, ""
70
 
71
  bot_reply = chatbot_interface(user_message)
 
75
  # Connect the button click to the chat update function
76
  send_button.click(chat_update, [user_input, chatbot], [chatbot, user_input])
77
 
78
+ interface.launch()