Kdeveloper1029 commited on
Commit
542f403
·
verified ·
1 Parent(s): 1c8f55f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -171,10 +171,10 @@ def personality_demo():
171
  placeholder="Type personality description or paste a sample text here."
172
  )
173
 
174
- # Giao Diện Chat Bot
175
  chatbot = gr.Chatbot() # Chat display area
176
- msg = gr.Textbox(label="User Input", placeholder="Say something to the chatbot...") # Hộp thoại để user nhắn vô
177
- clear = gr.Button("Clear Chat") # Nút xóa toàn bộ nội dung 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])