nielsr HF staff commited on
Commit
7777d8a
1 Parent(s): 90ea4db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,6 @@ import os
2
  os.system('!python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
3
  os.system('!git clone -b add_dit_inference_bis https://github.com/NielsRogge/unilm.git')
4
 
5
- import argparse
6
  import cv2
7
  from unilm.dit.object_detection.ditod import add_vit_config
8
  from detectron2.config import get_cfg
@@ -10,6 +9,8 @@ from detectron2.utils.visualizer import ColorMode, Visualizer
10
  from detectron2.data import MetadataCatalog
11
  from detectron2.engine import DefaultPredictor
12
 
 
 
13
 
14
  # Step 1: instantiate config
15
  cfg = get_cfg()
 
2
  os.system('!python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
3
  os.system('!git clone -b add_dit_inference_bis https://github.com/NielsRogge/unilm.git')
4
 
 
5
  import cv2
6
  from unilm.dit.object_detection.ditod import add_vit_config
7
  from detectron2.config import get_cfg
 
9
  from detectron2.data import MetadataCatalog
10
  from detectron2.engine import DefaultPredictor
11
 
12
+ import gradio as gr
13
+
14
 
15
  # Step 1: instantiate config
16
  cfg = get_cfg()