Spaces:
Runtime error
Runtime error
Commit
·
2116315
1
Parent(s):
8108b6a
Fix collections import
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2 |
os.system('git clone https://github.com/facebookresearch/detectron2.git')
|
3 |
os.system('pip install -e detectron2')
|
4 |
os.system("git clone https://github.com/microsoft/unilm.git")
|
|
|
5 |
|
6 |
import sys
|
7 |
sys.path.append("unilm")
|
|
|
2 |
os.system('git clone https://github.com/facebookresearch/detectron2.git')
|
3 |
os.system('pip install -e detectron2')
|
4 |
os.system("git clone https://github.com/microsoft/unilm.git")
|
5 |
+
os.system("sed -i '/from collections import Iterable/c\from collections.abc import Iterable' unilm/dit/object_detection/ditod/table_evaluation/data_structure.py")
|
6 |
|
7 |
import sys
|
8 |
sys.path.append("unilm")
|