dimostzim Claude Sonnet 4.6 commited on
Commit
995508e
·
1 Parent(s): 6deb231

Fix Gradio 6.0 deprecation: move theme to launch()

Browse files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -906,7 +906,7 @@ def process_uploaded_file(file, compute_shap):
906
  def create_gradio_interface():
907
  """Create the Gradio web interface with tabs."""
908
 
909
- with gr.Blocks(title="miRBind2: miRNA-mRNA Binding Predictor", theme=gr.themes.Soft()) as app:
910
  gr.Markdown("""
911
  # miRBind2: miRNA-mRNA Binding Site Predictor
912
 
@@ -1093,7 +1093,8 @@ def main():
1093
  share=False, # Set to True to create public link
1094
  server_name="0.0.0.0", # Required for containerized hosting (HF Spaces)
1095
  server_port=7860,
1096
- show_error=True
 
1097
  )
1098
 
1099
 
 
906
  def create_gradio_interface():
907
  """Create the Gradio web interface with tabs."""
908
 
909
+ with gr.Blocks(title="miRBind2: miRNA-mRNA Binding Predictor") as app:
910
  gr.Markdown("""
911
  # miRBind2: miRNA-mRNA Binding Site Predictor
912
 
 
1093
  share=False, # Set to True to create public link
1094
  server_name="0.0.0.0", # Required for containerized hosting (HF Spaces)
1095
  server_port=7860,
1096
+ show_error=True,
1097
+ theme=gr.themes.Soft()
1098
  )
1099
 
1100