SorrelC commited on
Commit
079357b
·
verified ·
1 Parent(s): 63fa7f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -621,7 +621,8 @@ def process_text(text, selected_model, num_keywords, ngram_min, ngram_max, progr
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,4 +832,5 @@ def create_interface():
831
 
832
  if __name__ == "__main__":
833
  demo = create_interface()
834
- demo.launch()
 
 
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
 
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())