hasibzunair commited on
Commit
19f2675
·
1 Parent(s): dce42c7

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -12,7 +12,7 @@ os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
12
  tb._SYMBOLIC_SCOPE.value = True
13
 
14
  # Get model weights
15
- os.system("https://huggingface.co/hasibzunair/melanet/blob/main/MelaNet.h5")
16
 
17
  # Load model
18
  model = None
@@ -54,7 +54,6 @@ title = "Melanoma Detection using Adversarial Training and Deep Transfer Learnin
54
  description = codecs.open("description.html", "r", "utf-8").read()
55
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2004.06824' target='_blank'>Melanoma Detection using Adversarial Training and Deep Transfer Learning</a> | <a href='https://github.com/hasibzunair/adversarial-lesions' target='_blank'>Github</a></p>"
56
 
57
-
58
  demo = gr.Interface(
59
  fn=inference,
60
  title=title,
@@ -67,8 +66,4 @@ demo = gr.Interface(
67
  analytics_enabled=False,
68
  )
69
 
70
-
71
- demo.launch(
72
- # debug=True,
73
- # enable_queue=True
74
- )
 
12
  tb._SYMBOLIC_SCOPE.value = True
13
 
14
  # Get model weights
15
+ os.system("wget https://huggingface.co/hasibzunair/melanet/blob/main/MelaNet.h5")
16
 
17
  # Load model
18
  model = None
 
54
  description = codecs.open("description.html", "r", "utf-8").read()
55
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2004.06824' target='_blank'>Melanoma Detection using Adversarial Training and Deep Transfer Learning</a> | <a href='https://github.com/hasibzunair/adversarial-lesions' target='_blank'>Github</a></p>"
56
 
 
57
  demo = gr.Interface(
58
  fn=inference,
59
  title=title,
 
66
  analytics_enabled=False,
67
  )
68
 
69
+ demo.launch()