SorrelC commited on
Commit
33c267b
·
verified ·
1 Parent(s): 7889f7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -231,8 +231,8 @@ def process_text(input_text, primary1, synonyms1, primary2, synonyms2, primary3,
231
 
232
  # Create the Gradio interface
233
  def create_interface():
234
- # Note: theme moved to launch() for Gradio 6.0 compatibility
235
- with gr.Blocks(title="Keyword Tagging Tool") as demo:
236
  gr.HTML("""
237
  <h1>Controlled Vocabluary Keyword Tagging Tool</h1>
238
 
@@ -402,5 +402,5 @@ def create_interface():
402
 
403
  if __name__ == "__main__":
404
  demo = create_interface()
405
- # Gradio 6.0 compatibility: theme and ssr_mode moved to launch()
406
- demo.launch(ssr_mode=False, theme=gr.themes.Soft())
 
231
 
232
  # Create the Gradio interface
233
  def create_interface():
234
+ # theme stays in gr.Blocks(), ssr_mode goes in launch()
235
+ with gr.Blocks(title="Keyword Tagging Tool", theme=gr.themes.Soft()) as demo:
236
  gr.HTML("""
237
  <h1>Controlled Vocabluary Keyword Tagging Tool</h1>
238
 
 
402
 
403
  if __name__ == "__main__":
404
  demo = create_interface()
405
+ # Gradio 5.x/6.x compatibility: only ssr_mode goes in launch()
406
+ demo.launch(ssr_mode=False)