Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -171,10 +171,10 @@ def personality_demo():
|
|
171 |
placeholder="Type personality description or paste a sample text here."
|
172 |
)
|
173 |
|
174 |
-
#
|
175 |
chatbot = gr.Chatbot() # Chat display area
|
176 |
-
msg = gr.Textbox(label="User Input", placeholder="Say something to the chatbot...") #
|
177 |
-
clear = gr.Button("Clear Chat") #
|
178 |
|
179 |
# Link user input submission to the chatbot response function
|
180 |
msg.submit(respond, [msg, chatbot, personality_textbox], [chatbot, chatbot])
|
|
|
171 |
placeholder="Type personality description or paste a sample text here."
|
172 |
)
|
173 |
|
174 |
+
# Chatbot UI elements
|
175 |
chatbot = gr.Chatbot() # Chat display area
|
176 |
+
msg = gr.Textbox(label="User Input", placeholder="Say something to the chatbot...") # User input box
|
177 |
+
clear = gr.Button("Clear Chat") # Button to clear chat history
|
178 |
|
179 |
# Link user input submission to the chatbot response function
|
180 |
msg.submit(respond, [msg, chatbot, personality_textbox], [chatbot, chatbot])
|