Update ui/components.py
Browse files- ui/components.py +3 -2
ui/components.py
CHANGED
|
@@ -79,11 +79,12 @@ def create_audio_components() -> tuple:
|
|
| 79 |
return audio_input, transcription_output, response_output, tts_audio_output, process_button
|
| 80 |
|
| 81 |
def create_chat_components() -> tuple:
|
| 82 |
-
"""Tạo components cho chat interface
|
| 83 |
chatbot = gr.Chatbot(
|
| 84 |
label="Chatbot",
|
| 85 |
height=500,
|
| 86 |
-
show_copy_button=True
|
|
|
|
| 87 |
)
|
| 88 |
state = gr.State([])
|
| 89 |
|
|
|
|
| 79 |
return audio_input, transcription_output, response_output, tts_audio_output, process_button
|
| 80 |
|
| 81 |
def create_chat_components() -> tuple:
|
| 82 |
+
"""Tạo components cho chat interface - ĐÃ SỬA WARNING"""
|
| 83 |
chatbot = gr.Chatbot(
|
| 84 |
label="Chatbot",
|
| 85 |
height=500,
|
| 86 |
+
show_copy_button=True,
|
| 87 |
+
type="messages" # THÊM DÒNG NÀY ĐỂ FIX WARNING
|
| 88 |
)
|
| 89 |
state = gr.State([])
|
| 90 |
|