Spaces:
Runtime error
Runtime error
add application files
Browse files
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((
|
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()
|