mbar0075 commited on
Commit
2722cba
Β·
1 Parent(s): ea71b68

Attempting Model Fix

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -6,7 +6,7 @@ from ultralytics import YOLO
6
  import os
7
 
8
  MARKDOWN = """
9
- <h1 style='text-align: left'>YOLO Application Toolkit πŸš€πŸŒ</h1>
10
  <p>Welcome to the YOLO Application Toolkit! This demo highlights the powerful detection capabilities of various YOLO models pre-trained on different datasets. πŸŽ‰
11
 
12
  Easily detect objects in images and videos on the go. Perfect for quick experimentation and practical use. πŸŽ‰πŸ”</p>
@@ -26,16 +26,14 @@ Powered by Roboflow [Inference](https://github.com/roboflow/inference),
26
  [Supervision](https://github.com/roboflow/supervision) and [Ultralytics](https://github.com/ultralytics/ultralytics).πŸ”₯
27
  """
28
 
29
- MODEL_DIR = os.path.join(os.path.dirname(__file__), "models")
30
-
31
  # Load models dynamically
32
  MODELS = {
33
- "YOLO11m (COCO128)": YOLO(os.path.join(MODEL_DIR, "yolo11m.pt")),
34
- "American Sign Language (ASL) YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_sign_language.pt")),
35
  # "Microscopic Cell Detection YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_microscope_cells.pt")),
36
- "Website Screenshots YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_website_screenshots.pt")),
37
- "Zoo Animals YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_zoo_animals.pt")),
38
- "Pinned Circuit Boards YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_circuit_boards.pt")),
39
  }
40
 
41
  example_dir = "https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/"
 
6
  import os
7
 
8
  MARKDOWN = """
9
+ <h1 style='text-align: left'>YOLO Application Toolkit πŸš€</h1>
10
  <p>Welcome to the YOLO Application Toolkit! This demo highlights the powerful detection capabilities of various YOLO models pre-trained on different datasets. πŸŽ‰
11
 
12
  Easily detect objects in images and videos on the go. Perfect for quick experimentation and practical use. πŸŽ‰πŸ”</p>
 
26
  [Supervision](https://github.com/roboflow/supervision) and [Ultralytics](https://github.com/ultralytics/ultralytics).πŸ”₯
27
  """
28
 
 
 
29
  # Load models dynamically
30
  MODELS = {
31
+ "YOLO11m (COCO128)": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m.pt"),
32
+ "American Sign Language (ASL) YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_sign_language.pt"),
33
  # "Microscopic Cell Detection YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_microscope_cells.pt")),
34
+ "Website Screenshots YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_website_screenshots.pt"),
35
+ "Zoo Animals YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_zoo_animals.pt"),
36
+ "Pinned Circuit Boards YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_circuit_boards.pt"),
37
  }
38
 
39
  example_dir = "https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/"