mckabue commited on
Commit
7c308ee
Β·
1 Parent(s): 989040f

2023-11-27-08-25-52

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -4,10 +4,13 @@ import os
4
  # os.system("pip install -q gradio==4.7.1")
5
  # os.system("pip install torch==2.1.0 torchvision torchaudio")
6
  # os.system("pip install 'git+https://github.com/facebookresearch/detectron2.git@v0.6'")
 
 
 
7
  os.system("pip install 'git+https://github.com/facebookresearch/detectron2.git'")
8
- os.system("pip install layoutparser==0.3.4 layoutparser[layoutmodels] layoutparser[ocr]")
9
  os.system("pip install Pillow==9.4.0")
10
- # os.system("pip install requests==2.31.0")
11
 
12
  import gradio as gr
13
  import layoutparser as lp
 
4
  # os.system("pip install -q gradio==4.7.1")
5
  # os.system("pip install torch==2.1.0 torchvision torchaudio")
6
  # os.system("pip install 'git+https://github.com/facebookresearch/detectron2.git@v0.6'")
7
+ # os.system("pip install layoutparser==0.3.4 layoutparser[layoutmodels] layoutparser[ocr]")
8
+ # os.system("pip install requests==2.31.0")
9
+ os.system("pip install torch torchvision")
10
  os.system("pip install 'git+https://github.com/facebookresearch/detectron2.git'")
11
+ os.system("pip install layoutparser layoutparser[layoutmodels] layoutparser[ocr]")
12
  os.system("pip install Pillow==9.4.0")
13
+ os.system("pip install requests")
14
 
15
  import gradio as gr
16
  import layoutparser as lp