pratikshahp commited on
Commit
2356623
·
verified ·
1 Parent(s): a2023bf

Delete model.py

Browse files
Files changed (1) hide show
  1. model.py +0 -8
model.py DELETED
@@ -1,8 +0,0 @@
1
- # Load model directly
2
- import os
3
- from dotenv import load_dotenv
4
- load_dotenv()
5
- model_name = os.getenv('MODEL_NAME') # model name for huggingface.co in .env file
6
- from transformers import AutoImageProcessor, AutoModelForObjectDetection
7
- processor = AutoImageProcessor.from_pretrained(model_name)
8
- model = AutoModelForObjectDetection.from_pretrained(model_name)