rockeycoss commited on
Commit
a394c57
·
1 Parent(s): fa4d18a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,10 +4,10 @@ from collections import OrderedDict
4
 
5
  import torch
6
 
7
- print(torch.__version__)
8
- torch_ver, cuda_ver = torch.__version__.split('+')
9
- os.system('pip list')
10
- os.system(f'pip install pycocotools==2.0.0 mmdet mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/{cuda_ver}/torch1.10.0/index.html --no-cache-dir')
11
 
12
 
13
  from mmcv import Config
@@ -133,7 +133,7 @@ def main():
133
  clear_btn.click(lambda: [None, None], None, [input_img, output_img], queue=False)
134
 
135
  demo.queue()
136
- demo.launch(share=True)
137
 
138
 
139
  if __name__ == '__main__':
 
4
 
5
  import torch
6
 
7
+ # print(torch.__version__)
8
+ # torch_ver, cuda_ver = torch.__version__.split('+')
9
+ # os.system('pip list')
10
+ # os.system(f'pip install pycocotools==2.0.0 mmdet mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/{cuda_ver}/torch1.10.0/index.html --no-cache-dir')
11
 
12
 
13
  from mmcv import Config
 
133
  clear_btn.click(lambda: [None, None], None, [input_img, output_img], queue=False)
134
 
135
  demo.queue()
136
+ demo.launch(share=False)
137
 
138
 
139
  if __name__ == '__main__':