oceansweep commited on
Commit
2ab733a
1 Parent(s): b04dac4

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -38
app.py CHANGED
@@ -3648,42 +3648,6 @@ def launch_ui(demo_mode=False):
3648
  # ["Export", "Import"]
3649
  # )
3650
 
3651
- # Second sub-tab for Keywords tab
3652
- keyword_add_interface = gr.Interface(
3653
- fn=add_keyword,
3654
- inputs=gr.Textbox(label="Add Keywords (comma-separated)", placeholder="Enter keywords here..."),
3655
- outputs="text",
3656
- title="Add Keywords",
3657
- description="Add one, or multiple keywords to the database.",
3658
- allow_flagging="never"
3659
- )
3660
-
3661
- # Third sub-tab for Keywords tab
3662
- keyword_delete_interface = gr.Interface(
3663
- fn=delete_keyword,
3664
- inputs=gr.Textbox(label="Delete Keyword", placeholder="Enter keyword to delete here..."),
3665
- outputs="text",
3666
- title="Delete Keyword",
3667
- description="Delete a keyword from the database.",
3668
- allow_flagging="never"
3669
- )
3670
-
3671
- # First sub-tab for Keywords tab
3672
- browse_keywords_interface = gr.Interface(
3673
- fn=keywords_browser_interface,
3674
- inputs=[],
3675
- outputs="markdown",
3676
- title="Browse Keywords",
3677
- description="View all keywords currently stored in the database."
3678
- )
3679
-
3680
- # Combine the keyword interfaces into a tabbed interface
3681
- # So this is how it works... #FIXME
3682
- keyword_tab = gr.TabbedInterface(
3683
- [browse_keywords_interface, keyword_add_interface, keyword_delete_interface],
3684
- ["Browse Keywords", "Add Keywords", "Delete Keywords"]
3685
- )
3686
-
3687
  def ensure_dir_exists(path):
3688
  if not os.path.exists(path):
3689
  os.makedirs(path)
@@ -3740,9 +3704,9 @@ def launch_ui(demo_mode=False):
3740
 
3741
  # Combine interfaces into a tabbed interface
3742
  tabbed_interface = gr.TabbedInterface(
3743
- [iface, search_interface, llamafile_interface, keyword_tab, import_export_tab, download_videos_interface],
3744
  ["Transcription / Summarization / Ingestion", "Search / Detailed View",
3745
- "Local LLM with Llamafile", "Keywords", "Export/Import", "Download Video/Audio Files"])
3746
 
3747
  # Launch the interface
3748
  server_port_variable = 7860
 
3648
  # ["Export", "Import"]
3649
  # )
3650
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3651
  def ensure_dir_exists(path):
3652
  if not os.path.exists(path):
3653
  os.makedirs(path)
 
3704
 
3705
  # Combine interfaces into a tabbed interface
3706
  tabbed_interface = gr.TabbedInterface(
3707
+ [iface, search_interface, llamafile_interface, import_export_tab, download_videos_interface],
3708
  ["Transcription / Summarization / Ingestion", "Search / Detailed View",
3709
+ "Local LLM with Llamafile", "Export/Import", "Download Video/Audio Files"])
3710
 
3711
  # Launch the interface
3712
  server_port_variable = 7860