dlaima commited on
Commit
3a108de
·
verified ·
1 Parent(s): 0783d58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -12,11 +12,12 @@ logging.set_verbosity_error()
12
 
13
  #from helper import ignore_warnings
14
  #ignore_warnings()
15
- import sys
16
- sys.path.append("./Object-Detection/helper.py") # Adjust the path as necessary to point to the directory where helper.py is located
17
 
18
  #from Object-Detection.helper import ignore_warnings
19
- from helper import ignore_warnings
 
20
  ignore_warnings()
21
 
22
  # Import the pipeline function from the transformers library
@@ -28,7 +29,7 @@ pipe = pipeline("object-detection", model="facebook/detr-resnet-50")
28
  #sys.path.append("./Open_Source_Models_with_Hugging_Face/Object_Detection/helper.py") # Adjust the path as necessary to point to the directory where helper.py is located
29
 
30
  #from Object-Detection.helper import import load_image_from_url, render_results_in_image
31
- from helper import load_image_from_url, render_results_in_image
32
 
33
 
34
  # Load the image from a file
 
12
 
13
  #from helper import ignore_warnings
14
  #ignore_warnings()
15
+ #import sys
16
+ #sys.path.append("./Object-Detection/helper.py") # Adjust the path as necessary to point to the directory where helper.py is located
17
 
18
  #from Object-Detection.helper import ignore_warnings
19
+ #from helper import ignore_warnings
20
+ from helper import *
21
  ignore_warnings()
22
 
23
  # Import the pipeline function from the transformers library
 
29
  #sys.path.append("./Open_Source_Models_with_Hugging_Face/Object_Detection/helper.py") # Adjust the path as necessary to point to the directory where helper.py is located
30
 
31
  #from Object-Detection.helper import import load_image_from_url, render_results_in_image
32
+ #from helper import load_image_from_url, render_results_in_image
33
 
34
 
35
  # Load the image from a file