codic commited on
Commit
aa543b2
·
verified ·
1 Parent(s): 83f766f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,9 +27,10 @@ except Exception as e:
27
  logger.error("Failed to load GLiNER model")
28
  raise e
29
 
 
30
  def get_random_color():
31
- return tuple(np.random.randint(0, 256, 3).tolist()
32
-
33
  def scan_qr_code(image):
34
  try:
35
  image_np = np.array(image)
 
27
  logger.error("Failed to load GLiNER model")
28
  raise e
29
 
30
+ # Get a random color (used for drawing bounding boxes, if needed)
31
  def get_random_color():
32
+ return tuple(np.random.randint(0, 256, 3).tolist()) # Fixed line
33
+
34
  def scan_qr_code(image):
35
  try:
36
  image_np = np.array(image)