Pavan Praneeth commited on
Commit
fc6e64a
·
1 Parent(s): 8bc4c8f

Upgrade to Gradio 6.9.0 and update dependencies

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +4 -4
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🔬
4
  colorFrom: indigo
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: "4.42.0"
8
  python_version: "3.10"
9
  app_file: app.py
10
  pinned: false
 
4
  colorFrom: indigo
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: "6.9.0"
8
  python_version: "3.10"
9
  app_file: app.py
10
  pinned: false
app.py CHANGED
@@ -123,7 +123,7 @@ Upload a dermoscopy image to get an instant binary segmentation mask from a trai
123
  *Trained on ISIC 2018 Task 1 (568 images, 70/15/15 split).*
124
  """
125
 
126
- with gr.Blocks(theme=gr.themes.Soft(), title="ISIC Skin Lesion Segmentation") as demo:
127
  gr.Markdown(DESCRIPTION)
128
 
129
  with gr.Row():
@@ -131,8 +131,8 @@ with gr.Blocks(theme=gr.themes.Soft(), title="ISIC Skin Lesion Segmentation") as
131
  inp = gr.Image(label="Input Image", type="pil")
132
  btn = gr.Button("Segment 🔍", variant="primary")
133
  with gr.Column():
134
- out_mask = gr.Image(label="Predicted Mask")
135
- out_overlay = gr.Image(label="Overlay on Original")
136
 
137
  btn.click(
138
  fn=segment,
@@ -144,4 +144,4 @@ with gr.Blocks(theme=gr.themes.Soft(), title="ISIC Skin Lesion Segmentation") as
144
 
145
 
146
  if __name__ == "__main__":
147
- demo.launch()
 
123
  *Trained on ISIC 2018 Task 1 (568 images, 70/15/15 split).*
124
  """
125
 
126
+ with gr.Blocks(title="ISIC Skin Lesion Segmentation") as demo:
127
  gr.Markdown(DESCRIPTION)
128
 
129
  with gr.Row():
 
131
  inp = gr.Image(label="Input Image", type="pil")
132
  btn = gr.Button("Segment 🔍", variant="primary")
133
  with gr.Column():
134
+ out_mask = gr.Image(label="Predicted Mask", type="pil")
135
+ out_overlay = gr.Image(label="Overlay on Original", type="pil")
136
 
137
  btn.click(
138
  fn=segment,
 
144
 
145
 
146
  if __name__ == "__main__":
147
+ demo.launch(theme=gr.themes.Soft())
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  torch>=2.5.0
2
  torchvision>=0.20.0
3
- huggingface_hub==0.23.4
4
  Pillow
5
  numpy
 
1
  torch>=2.5.0
2
  torchvision>=0.20.0
3
+ huggingface_hub
4
  Pillow
5
  numpy