Failing to create a Space for OmniParser
---- CLOSED: YES IT WAS EASYOCR, THE MODEL FILES HAD TO BE INCLUDED IN THE REPO, WHICH SOLVED THE ISSUE ---
I am trying to create a Huggingface Space for OmniParser.
Currently it is failing with "Exit code: 1".
The last log message of the Container Log is:
"Downloading detection model, please wait. This may take several minutes depending upon your network connection."
Sounds like any of the used models doesn't find its model files and tries to download them and then fails.
Do you have any idea what I am missing?
ChatGPT thinks it might be easyocr.
This is my file list of the Space repo:
.gitattributes
.gitignore
app.py
demo.ipynb
Dockerfile
imgs
LICENSE
omniparser.py
README.md
requirements.txt
SECURITY.md
util
utils.py
weights
imgs\google_page.png
imgs\logo.png
imgs\saved_image_demo.png
imgs\windows_home.png
imgs\windows_multitab.png
util\action_matching.py
util\action_type.py
util\box_annotator.py
util_init_.py
weights\convert_safetensor_to_pt.py
weights\icon_caption_blip2
weights\icon_caption_florence
weights\icon_detect
weights\icon_caption_blip2\config.json
weights\icon_caption_blip2\generation_config.json
weights\icon_caption_blip2\LICENSE
weights\icon_caption_blip2\pytorch_model-00001-of-00002.bin
weights\icon_caption_blip2\pytorch_model-00001-of-00002.safetensors
weights\icon_caption_blip2\pytorch_model-00002-of-00002.bin
weights\icon_caption_blip2\pytorch_model-00002-of-00002.safetensors
weights\icon_caption_blip2\pytorch_model.bin.index.json
weights\icon_caption_florence\config.json
weights\icon_caption_florence\generation_config.json
weights\icon_caption_florence\LICENSE
weights\icon_caption_florence\model.safetensors
weights\icon_detect\best.pt
weights\icon_detect\LICENSE
weights\icon_detect\model.safetensors
weights\icon_detect\model.yaml