Nadine Rueegg commited on
Commit
1d49379
β€’
1 Parent(s): 26a85d5
Files changed (1) hide show
  1. gradio_demo/barc_demo_v3.py +2 -2
gradio_demo/barc_demo_v3.py CHANGED
@@ -3,11 +3,11 @@
3
  import os
4
  os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
5
  os.environ["CUDA_VISIBLE_DEVICES"]="0"
6
- '''try:
7
  # os.system("pip install --upgrade torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html")
8
  os.system("pip install --upgrade torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/cu101/torch_stable.html")
9
  except Exception as e:
10
- print(e)'''
11
 
12
  import numpy as np
13
  import os
 
3
  import os
4
  os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
5
  os.environ["CUDA_VISIBLE_DEVICES"]="0"
6
+ try:
7
  # os.system("pip install --upgrade torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html")
8
  os.system("pip install --upgrade torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/cu101/torch_stable.html")
9
  except Exception as e:
10
+ print(e)
11
 
12
  import numpy as np
13
  import os