Spaces:
Running
Running
update installation
Browse files
app.py
CHANGED
@@ -1,14 +1,8 @@
|
|
1 |
import os
|
2 |
os.system('pip install pyyaml==5.1')
|
3 |
-
|
4 |
-
os.system('pip install
|
5 |
-
|
6 |
-
# install detectron2 that matches pytorch 1.8
|
7 |
-
# See https://detectron2.readthedocs.io/tutorials/install.html for instructions
|
8 |
-
os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
|
9 |
-
|
10 |
-
## install PyTesseract
|
11 |
-
os.system('pip install -q pytesseract')
|
12 |
|
13 |
import gradio as gr
|
14 |
import numpy as np
|
|
|
1 |
import os
|
2 |
os.system('pip install pyyaml==5.1')
|
3 |
+
os.system('pip install torch==1.10.1+cpu torchvision==0.11.2+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html')
|
4 |
+
os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.10/index.html')
|
5 |
+
os.system('pip install pytesseract')
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
import gradio as gr
|
8 |
import numpy as np
|