Prathamesh1420 commited on
Commit
b6a93ac
Β·
verified Β·
1 Parent(s): 1fa177b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ os.environ["GOOGLE_API_KEY"] = "AIzaSyDT0y1kJqgGKiOYiYFMXc-2kTgV_WLbOpA"#os.gete
15
  gemini_model = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
16
 
17
  # βœ… Load the YOLO model
18
- yolo_model = YOLO("/content/Bottle_lable_checking_using_gemini_yolo/best.pt")
19
  names = yolo_model.names
20
 
21
  def encode_image_to_base64(image):
@@ -121,7 +121,7 @@ def gradio_interface(video_path):
121
  return process_video(video_path)
122
 
123
  # βœ… Sample video file
124
- sample_video_path = "/content/Bottle_lable_checking_using_gemini_yolo/vid4.mp4" # Make sure this file is available in the working directory
125
 
126
  # βœ… Gradio UI setup with sample video
127
  iface = gr.Interface(
 
15
  gemini_model = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
16
 
17
  # βœ… Load the YOLO model
18
+ yolo_model = YOLO("best.pt")
19
  names = yolo_model.names
20
 
21
  def encode_image_to_base64(image):
 
121
  return process_video(video_path)
122
 
123
  # βœ… Sample video file
124
+ sample_video_path = "vid4.mp4" # Make sure this file is available in the working directory
125
 
126
  # βœ… Gradio UI setup with sample video
127
  iface = gr.Interface(