Spaces:
Runtime error
Runtime error
Update App_Function_Libraries/Gradio_Related.py
Browse files
App_Function_Libraries/Gradio_Related.py
CHANGED
|
@@ -284,127 +284,127 @@ def launch_ui(share_public=None, server_mode=False):
|
|
| 284 |
create_live_recording_tab()
|
| 285 |
create_arxiv_tab()
|
| 286 |
|
| 287 |
-
with gr.TabItem("Text Search", id="text search", visible=True):
|
| 288 |
-
create_search_tab()
|
| 289 |
-
create_search_summaries_tab()
|
| 290 |
-
|
| 291 |
-
with gr.TabItem("RAG Chat/Search", id="RAG Chat Notes group", visible=True):
|
| 292 |
-
create_rag_tab()
|
| 293 |
-
create_rag_qa_chat_tab()
|
| 294 |
-
create_rag_qa_notes_management_tab()
|
| 295 |
-
create_rag_qa_chat_management_tab()
|
| 296 |
-
|
| 297 |
-
with gr.TabItem("Chat with an LLM", id="LLM Chat group", visible=True):
|
| 298 |
-
create_chat_interface()
|
| 299 |
-
create_chat_interface_stacked()
|
| 300 |
-
create_chat_interface_multi_api()
|
| 301 |
-
create_chat_interface_four()
|
| 302 |
#create_chat_with_llamafile_tab()
|
| 303 |
-
create_chat_management_tab()
|
| 304 |
-
chat_workflows_tab()
|
| 305 |
|
| 306 |
|
| 307 |
-
with gr.TabItem("Character Chat", id="character chat group", visible=True):
|
| 308 |
-
create_character_card_interaction_tab()
|
| 309 |
-
create_character_chat_mgmt_tab()
|
| 310 |
-
create_custom_character_card_tab()
|
| 311 |
-
create_character_card_validation_tab()
|
| 312 |
-
create_multiple_character_chat_tab()
|
| 313 |
-
create_narrator_controlled_conversation_tab()
|
| 314 |
-
create_export_characters_tab()
|
| 315 |
|
| 316 |
|
| 317 |
-
with gr.TabItem("View DB Items", id="view db items group", visible=True):
|
| 318 |
# This one works
|
| 319 |
-
create_view_all_with_versions_tab()
|
| 320 |
# This one is WIP
|
| 321 |
-
create_viewing_tab()
|
| 322 |
-
create_prompt_view_tab()
|
| 323 |
|
| 324 |
|
| 325 |
-
with gr.TabItem("Prompts", id='view prompts group', visible=True):
|
| 326 |
-
create_prompt_view_tab()
|
| 327 |
-
create_prompt_search_tab()
|
| 328 |
-
create_prompt_edit_tab()
|
| 329 |
-
create_prompt_clone_tab()
|
| 330 |
-
create_prompt_suggestion_tab()
|
| 331 |
|
| 332 |
|
| 333 |
-
with gr.TabItem("Manage / Edit Existing Items", id="manage group", visible=True):
|
| 334 |
-
create_media_edit_tab()
|
| 335 |
-
create_manage_items_tab()
|
| 336 |
-
create_media_edit_and_clone_tab()
|
| 337 |
# FIXME
|
| 338 |
#create_compare_transcripts_tab()
|
| 339 |
|
| 340 |
|
| 341 |
-
with gr.TabItem("Embeddings Management", id="embeddings group", visible=True):
|
| 342 |
-
create_embeddings_tab()
|
| 343 |
-
create_view_embeddings_tab()
|
| 344 |
-
create_purge_embeddings_tab()
|
| 345 |
-
|
| 346 |
-
with gr.TabItem("Writing Tools", id="writing_tools group", visible=True):
|
| 347 |
-
from App_Function_Libraries.Gradio_UI.Writing_tab import create_document_feedback_tab
|
| 348 |
-
create_document_feedback_tab()
|
| 349 |
-
from App_Function_Libraries.Gradio_UI.Writing_tab import create_grammar_style_check_tab
|
| 350 |
-
create_grammar_style_check_tab()
|
| 351 |
-
from App_Function_Libraries.Gradio_UI.Writing_tab import create_tone_adjustment_tab
|
| 352 |
-
create_tone_adjustment_tab()
|
| 353 |
-
from App_Function_Libraries.Gradio_UI.Writing_tab import create_creative_writing_tab
|
| 354 |
-
create_creative_writing_tab()
|
| 355 |
-
from App_Function_Libraries.Gradio_UI.Writing_tab import create_mikupad_tab
|
| 356 |
-
create_mikupad_tab()
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
with gr.TabItem("Keywords", id="keywords group", visible=True):
|
| 360 |
-
create_view_keywords_tab()
|
| 361 |
-
create_add_keyword_tab()
|
| 362 |
-
create_delete_keyword_tab()
|
| 363 |
-
create_export_keywords_tab()
|
| 364 |
-
|
| 365 |
-
with gr.TabItem("Import", id="import group", visible=True):
|
| 366 |
-
create_import_item_tab()
|
| 367 |
-
create_import_obsidian_vault_tab()
|
| 368 |
-
create_import_single_prompt_tab()
|
| 369 |
-
create_import_multiple_prompts_tab()
|
| 370 |
-
create_mediawiki_import_tab()
|
| 371 |
-
create_mediawiki_config_tab()
|
| 372 |
-
|
| 373 |
-
with gr.TabItem("Export", id="export group", visible=True):
|
| 374 |
-
create_export_tab()
|
| 375 |
-
|
| 376 |
-
with gr.TabItem("Backup Management", id="backup group", visible=True):
|
| 377 |
-
create_backup_tab()
|
| 378 |
-
create_view_backups_tab()
|
| 379 |
-
create_restore_backup_tab()
|
| 380 |
-
|
| 381 |
-
with gr.TabItem("Utilities", id="util group", visible=True):
|
| 382 |
-
create_utilities_yt_video_tab()
|
| 383 |
-
create_utilities_yt_audio_tab()
|
| 384 |
-
create_utilities_yt_timestamp_tab()
|
| 385 |
|
| 386 |
#with gr.TabItem("Local LLM", id="local llm group", visible=True):
|
| 387 |
#create_chat_with_llamafile_tab()
|
| 388 |
#create_ollama_tab()
|
| 389 |
#create_huggingface_tab()
|
| 390 |
|
| 391 |
-
with gr.TabItem("Trashcan", id="trashcan group", visible=True):
|
| 392 |
-
create_search_and_mark_trash_tab()
|
| 393 |
-
create_view_trash_tab()
|
| 394 |
-
create_delete_trash_tab()
|
| 395 |
-
create_empty_trash_tab()
|
| 396 |
|
| 397 |
-
with gr.TabItem("Evaluations", id="eval", visible=True):
|
| 398 |
-
create_geval_tab()
|
| 399 |
-
create_infinite_bench_tab()
|
| 400 |
# FIXME
|
| 401 |
#create_mmlu_pro_tab()
|
| 402 |
|
| 403 |
-
with gr.TabItem("Introduction/Help", id="introduction group", visible=True):
|
| 404 |
-
create_introduction_tab()
|
| 405 |
|
| 406 |
-
with gr.TabItem("Config Editor", id="config group"):
|
| 407 |
-
create_config_editor_tab()
|
| 408 |
|
| 409 |
# Launch the interface
|
| 410 |
server_port_variable = 7860
|
|
|
|
| 284 |
create_live_recording_tab()
|
| 285 |
create_arxiv_tab()
|
| 286 |
|
| 287 |
+
#with gr.TabItem("Text Search", id="text search", visible=True):
|
| 288 |
+
#create_search_tab()
|
| 289 |
+
#create_search_summaries_tab()
|
| 290 |
+
|
| 291 |
+
#with gr.TabItem("RAG Chat/Search", id="RAG Chat Notes group", visible=True):
|
| 292 |
+
#create_rag_tab()
|
| 293 |
+
#create_rag_qa_chat_tab()
|
| 294 |
+
#create_rag_qa_notes_management_tab()
|
| 295 |
+
#create_rag_qa_chat_management_tab()
|
| 296 |
+
|
| 297 |
+
#with gr.TabItem("Chat with an LLM", id="LLM Chat group", visible=True):
|
| 298 |
+
#create_chat_interface()
|
| 299 |
+
#create_chat_interface_stacked()
|
| 300 |
+
#create_chat_interface_multi_api()
|
| 301 |
+
#create_chat_interface_four()
|
| 302 |
#create_chat_with_llamafile_tab()
|
| 303 |
+
#create_chat_management_tab()
|
| 304 |
+
#chat_workflows_tab()
|
| 305 |
|
| 306 |
|
| 307 |
+
#with gr.TabItem("Character Chat", id="character chat group", visible=True):
|
| 308 |
+
#create_character_card_interaction_tab()
|
| 309 |
+
#create_character_chat_mgmt_tab()
|
| 310 |
+
#create_custom_character_card_tab()
|
| 311 |
+
#create_character_card_validation_tab()
|
| 312 |
+
#create_multiple_character_chat_tab()
|
| 313 |
+
#create_narrator_controlled_conversation_tab()
|
| 314 |
+
#create_export_characters_tab()
|
| 315 |
|
| 316 |
|
| 317 |
+
#with gr.TabItem("View DB Items", id="view db items group", visible=True):
|
| 318 |
# This one works
|
| 319 |
+
#create_view_all_with_versions_tab()
|
| 320 |
# This one is WIP
|
| 321 |
+
#create_viewing_tab()
|
| 322 |
+
#create_prompt_view_tab()
|
| 323 |
|
| 324 |
|
| 325 |
+
#with gr.TabItem("Prompts", id='view prompts group', visible=True):
|
| 326 |
+
#create_prompt_view_tab()
|
| 327 |
+
#create_prompt_search_tab()
|
| 328 |
+
#create_prompt_edit_tab()
|
| 329 |
+
#create_prompt_clone_tab()
|
| 330 |
+
#create_prompt_suggestion_tab()
|
| 331 |
|
| 332 |
|
| 333 |
+
#with gr.TabItem("Manage / Edit Existing Items", id="manage group", visible=True):
|
| 334 |
+
#create_media_edit_tab()
|
| 335 |
+
#create_manage_items_tab()
|
| 336 |
+
#create_media_edit_and_clone_tab()
|
| 337 |
# FIXME
|
| 338 |
#create_compare_transcripts_tab()
|
| 339 |
|
| 340 |
|
| 341 |
+
#with gr.TabItem("Embeddings Management", id="embeddings group", visible=True):
|
| 342 |
+
#create_embeddings_tab()
|
| 343 |
+
#create_view_embeddings_tab()
|
| 344 |
+
#create_purge_embeddings_tab()
|
| 345 |
+
|
| 346 |
+
#with gr.TabItem("Writing Tools", id="writing_tools group", visible=True):
|
| 347 |
+
#from App_Function_Libraries.Gradio_UI.Writing_tab import create_document_feedback_tab
|
| 348 |
+
#create_document_feedback_tab()
|
| 349 |
+
#from App_Function_Libraries.Gradio_UI.Writing_tab import create_grammar_style_check_tab
|
| 350 |
+
#create_grammar_style_check_tab()
|
| 351 |
+
#from App_Function_Libraries.Gradio_UI.Writing_tab import create_tone_adjustment_tab
|
| 352 |
+
#create_tone_adjustment_tab()
|
| 353 |
+
#from App_Function_Libraries.Gradio_UI.Writing_tab import create_creative_writing_tab
|
| 354 |
+
#create_creative_writing_tab()
|
| 355 |
+
#from App_Function_Libraries.Gradio_UI.Writing_tab import create_mikupad_tab
|
| 356 |
+
#create_mikupad_tab()
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
#with gr.TabItem("Keywords", id="keywords group", visible=True):
|
| 360 |
+
#create_view_keywords_tab()
|
| 361 |
+
#create_add_keyword_tab()
|
| 362 |
+
#create_delete_keyword_tab()
|
| 363 |
+
#create_export_keywords_tab()
|
| 364 |
+
|
| 365 |
+
#with gr.TabItem("Import", id="import group", visible=True):
|
| 366 |
+
#create_import_item_tab()
|
| 367 |
+
#create_import_obsidian_vault_tab()
|
| 368 |
+
#create_import_single_prompt_tab()
|
| 369 |
+
#create_import_multiple_prompts_tab()
|
| 370 |
+
#create_mediawiki_import_tab()
|
| 371 |
+
#create_mediawiki_config_tab()
|
| 372 |
+
|
| 373 |
+
#with gr.TabItem("Export", id="export group", visible=True):
|
| 374 |
+
#create_export_tab()
|
| 375 |
+
|
| 376 |
+
#with gr.TabItem("Backup Management", id="backup group", visible=True):
|
| 377 |
+
#create_backup_tab()
|
| 378 |
+
#create_view_backups_tab()
|
| 379 |
+
#create_restore_backup_tab()
|
| 380 |
+
|
| 381 |
+
#with gr.TabItem("Utilities", id="util group", visible=True):
|
| 382 |
+
#create_utilities_yt_video_tab()
|
| 383 |
+
#create_utilities_yt_audio_tab()
|
| 384 |
+
#create_utilities_yt_timestamp_tab()
|
| 385 |
|
| 386 |
#with gr.TabItem("Local LLM", id="local llm group", visible=True):
|
| 387 |
#create_chat_with_llamafile_tab()
|
| 388 |
#create_ollama_tab()
|
| 389 |
#create_huggingface_tab()
|
| 390 |
|
| 391 |
+
#with gr.TabItem("Trashcan", id="trashcan group", visible=True):
|
| 392 |
+
#create_search_and_mark_trash_tab()
|
| 393 |
+
#create_view_trash_tab()
|
| 394 |
+
#create_delete_trash_tab()
|
| 395 |
+
#create_empty_trash_tab()
|
| 396 |
|
| 397 |
+
#with gr.TabItem("Evaluations", id="eval", visible=True):
|
| 398 |
+
#create_geval_tab()
|
| 399 |
+
#create_infinite_bench_tab()
|
| 400 |
# FIXME
|
| 401 |
#create_mmlu_pro_tab()
|
| 402 |
|
| 403 |
+
#with gr.TabItem("Introduction/Help", id="introduction group", visible=True):
|
| 404 |
+
#create_introduction_tab()
|
| 405 |
|
| 406 |
+
#with gr.TabItem("Config Editor", id="config group"):
|
| 407 |
+
#create_config_editor_tab()
|
| 408 |
|
| 409 |
# Launch the interface
|
| 410 |
server_port_variable = 7860
|