Spaces:
Runtime error
Runtime error
2023-11-27-07-36-37
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
|
2 |
import os
|
3 |
|
|
|
|
|
|
|
|
|
4 |
os.system("pip install torch==2.1.0 torchvision torchaudio")
|
5 |
os.system("pip install 'git+https://github.com/facebookresearch/[email protected]'")
|
6 |
os.system("pip install layoutparser==0.3.4 layoutparser[layoutmodels] layoutparser[ocr]")
|
|
|
1 |
|
2 |
import os
|
3 |
|
4 |
+
os.system("python3 -m venv mini-env")
|
5 |
+
os.system("ls ./")
|
6 |
+
os.system("source mini-env/bin/activate")
|
7 |
+
|
8 |
os.system("pip install torch==2.1.0 torchvision torchaudio")
|
9 |
os.system("pip install 'git+https://github.com/facebookresearch/[email protected]'")
|
10 |
os.system("pip install layoutparser==0.3.4 layoutparser[layoutmodels] layoutparser[ocr]")
|