Update ui/tabs.py
Browse files- ui/tabs.py +4 -3
ui/tabs.py
CHANGED
|
@@ -50,11 +50,12 @@ def create_all_tabs(audio_service: AudioService, chat_service: ChatService,
|
|
| 50 |
|
| 51 |
with gr.Tab("📚 RAG Wikipedia"):
|
| 52 |
create_rag_tab(rag_system, wikipedia_processor)
|
| 53 |
-
with gr.Tab("
|
|
|
|
| 54 |
if multilingual_manager:
|
| 55 |
-
|
| 56 |
else:
|
| 57 |
-
gr.Markdown("⚠️ Không
|
| 58 |
with gr.Tab("🔊 Text-to-Speech"):
|
| 59 |
create_tts_tab(tts_service)
|
| 60 |
|
|
|
|
| 50 |
|
| 51 |
with gr.Tab("📚 RAG Wikipedia"):
|
| 52 |
create_rag_tab(rag_system, wikipedia_processor)
|
| 53 |
+
with gr.Tab("🤖 CAG Chatbot"):
|
| 54 |
+
# Thêm tab CAG mới
|
| 55 |
if multilingual_manager:
|
| 56 |
+
create_cag_tab(rag_system, multilingual_manager)
|
| 57 |
else:
|
| 58 |
+
gr.Markdown("⚠️ Không thể khởi tạo CAG: thiếu multilingual manager")
|
| 59 |
with gr.Tab("🔊 Text-to-Speech"):
|
| 60 |
create_tts_tab(tts_service)
|
| 61 |
|