superuser-aisensum commited on
Commit
5ba71ca
·
verified ·
1 Parent(s): 7e20436

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ model_version = int(os.getenv("ROBOFLOW_MODEL_VERSION"))
23
 
24
  # DINO-X Config
25
  DINOX_API_KEY = os.getenv("DINO_X_API_KEY")
26
- DINOX_PROMPT = "bottle" # Customize sesuai produk kompetitor misal "beverage . food . drink . bottle"
27
 
28
  # Inisialisasi Model
29
  rf = Roboflow(api_key=rf_api_key)
@@ -202,7 +202,7 @@ def detect_objects_in_video(video_path):
202
  video.release()
203
  output_video.release()
204
 
205
- return temp_output_path, "Video processing completed successfully."
206
 
207
  except Exception as e:
208
  return None, f"An error occurred: {e}"
 
23
 
24
  # DINO-X Config
25
  DINOX_API_KEY = os.getenv("DINO_X_API_KEY")
26
+ DINOX_PROMPT = "beverage . bottle" # Customize sesuai produk kompetitor
27
 
28
  # Inisialisasi Model
29
  rf = Roboflow(api_key=rf_api_key)
 
202
  video.release()
203
  output_video.release()
204
 
205
+ return temp_output_path # Return only the output video path, no message.
206
 
207
  except Exception as e:
208
  return None, f"An error occurred: {e}"