SorrelC commited on
Commit
cf347e9
·
verified ·
1 Parent(s): 43f6811

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -621,8 +621,7 @@ def process_text(text, selected_model, num_keywords, ngram_min, ngram_max, progr
621
 
622
  # Create Gradio interface
623
  def create_interface():
624
- # Note: theme moved to launch() for Gradio 6.0 compatibility
625
- with gr.Blocks(title="Keyword Extraction Tool") as demo:
626
  gr.Markdown("""
627
  # Keyword Extraction Explorer Tool
628
 
@@ -832,5 +831,4 @@ def create_interface():
832
 
833
  if __name__ == "__main__":
834
  demo = create_interface()
835
- # Gradio 6.0 compatibility: theme and ssr_mode moved to launch()
836
- demo.launch(ssr_mode=False, theme=gr.themes.Soft())
 
621
 
622
  # Create Gradio interface
623
  def create_interface():
624
+ with gr.Blocks(title="Keyword Extraction Tool", theme=gr.themes.Soft()) as demo:
 
625
  gr.Markdown("""
626
  # Keyword Extraction Explorer Tool
627
 
 
831
 
832
  if __name__ == "__main__":
833
  demo = create_interface()
834
+ demo.launch()