DravenBlack commited on
Commit
649c590
·
verified ·
1 Parent(s): 6341118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,8 @@ import numpy as np
5
  import torch
6
  from PIL import Image
7
  import io
8
-
 
9
 
10
  import base64, os
11
  from util.utils import check_ocr_box, get_yolo_model, get_caption_model_processor, get_som_labeled_img
 
5
  import torch
6
  from PIL import Image
7
  import io
8
+ import sys
9
+ sys.path.append("./OmniParser") # ✨加入这一行,修正路径
10
 
11
  import base64, os
12
  from util.utils import check_ocr_box, get_yolo_model, get_caption_model_processor, get_som_labeled_img