watchtowerss commited on
Commit
7e7cb51
1 Parent(s): 297d2bb

update "mim install mmcv"

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -15,6 +15,8 @@ import torchvision
15
  import torch
16
  from tools.painter import mask_painter
17
 
 
 
18
  # download checkpoints
19
  def download_checkpoint(url, folder, filename):
20
  os.makedirs(folder, exist_ok=True)
@@ -534,7 +536,7 @@ with gr.Blocks() as iface:
534
  # cache_examples=True,
535
  )
536
  iface.queue(concurrency_count=1)
537
- iface.launch(debug=True, enable_queue=True, server_port=args.port, server_name="0.0.0.0")
538
 
539
 
540
 
 
15
  import torch
16
  from tools.painter import mask_painter
17
 
18
+ os.system("mim install mmcv")
19
+
20
  # download checkpoints
21
  def download_checkpoint(url, folder, filename):
22
  os.makedirs(folder, exist_ok=True)
 
536
  # cache_examples=True,
537
  )
538
  iface.queue(concurrency_count=1)
539
+ iface.launch(debug=True, enable_queue=True)
540
 
541
 
542