jebin511 commited on
Commit
715f504
·
verified ·
1 Parent(s): 16f565e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import joblib
3
  import numpy as np
@@ -56,7 +57,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
56
  """
57
  <h1 style="text-align:center;">🧬 DNA Mutation Analyzer</h1>
58
  <p style="text-align:center;">
59
- Upload or paste a DNA sequence to check for possible mutations using a Random Forest ML model.
60
  </p>
61
  """
62
  )
@@ -78,4 +79,5 @@ def api_predict(payload: dict):
78
  return predict_sequence(seq)
79
 
80
  if __name__ == "__main__":
81
- demo.launch()
 
 
1
+ # file: app.py
2
  import gradio as gr
3
  import joblib
4
  import numpy as np
 
57
  """
58
  <h1 style="text-align:center;">🧬 DNA Mutation Analyzer</h1>
59
  <p style="text-align:center;">
60
+ Enter a DNA sequence to check for mutations using the ML model.
61
  </p>
62
  """
63
  )
 
79
  return predict_sequence(seq)
80
 
81
  if __name__ == "__main__":
82
+ # Launch Gradio with a public link
83
+ demo.launch(share=True, ssr_mode=False)