yuragoithf commited on
Commit
7aeba2e
1 Parent(s): a33be90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import os
2
  import cv2
3
- import gdown
4
  import gradio as gr
5
  import tensorflow as tf
6
  import urllib.request
@@ -15,14 +14,14 @@ resized_shape = (768, 768, 3)
15
  IMG_SCALING = (1, 1)
16
 
17
 
18
- # Download the model file
19
- def download_model():
20
- url = "https://drive.google.com/uc?id=1FhICkeGn6GcNXWTDn1s83ctC-6Mo1UXk"
21
- output = "seg_unet_model.h5"
22
- gdown.download(url, output, quiet=False)
23
- return output
24
 
25
- model_file = download_model()
26
 
27
  #Custom objects for model
28
 
 
1
  import os
2
  import cv2
 
3
  import gradio as gr
4
  import tensorflow as tf
5
  import urllib.request
 
14
  IMG_SCALING = (1, 1)
15
 
16
 
17
+ # # Download the model file
18
+ # def download_model():
19
+ # url = "https://drive.google.com/uc?id=1FhICkeGn6GcNXWTDn1s83ctC-6Mo1UXk"
20
+ # output = "seg_unet_model.h5"
21
+ # gdown.download(url, output, quiet=False)
22
+ # return output
23
 
24
+ model_file = "./seg_unet_model.h5"
25
 
26
  #Custom objects for model
27