sunnychenxiwang commited on
Commit
b66eb8f
1 Parent(s): 7c3e0e2

install nltk

Browse files
Files changed (2) hide show
  1. app.py +1 -6
  2. install.py +9 -0
app.py CHANGED
@@ -6,12 +6,7 @@ from pipeline.run_pipeline import *
6
  并发优化
7
  '''
8
  import os
9
- os.system('python -m mim install mmocr')
10
- os.system('pip install gradio_client==0.2.7')
11
- os.system('python -m mim install "mmcv==2.0.0rc4"')
12
- os.system('python -m mim install mmengine==0.7.1')
13
- os.system('python -m mim install "mmdet==3.0.0rc5"')
14
- os.system('pip install -v -e .')
15
  # from run import *
16
  # '''
17
  # 把一些文件移动到此文件路径下
 
6
  并发优化
7
  '''
8
  import os
9
+ os.system('python install.py')
 
 
 
 
 
10
  # from run import *
11
  # '''
12
  # 把一些文件移动到此文件路径下
install.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import nltk
2
+ import os
3
+ nltk.download('wordnet')
4
+ os.system('python -m mim install mmocr')
5
+ os.system('pip install gradio_client==0.2.7')
6
+ os.system('python -m mim install "mmcv==2.0.0rc4"')
7
+ os.system('python -m mim install mmengine==0.7.1')
8
+ os.system('python -m mim install "mmdet==3.0.0rc5"')
9
+ os.system('pip install -v -e .')