Spaces:
Sleeping
Sleeping
Download src/utils/models_loader.py from DvorakInnovationAI/REVEL-RIZZ-API: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/spaces/DvorakInnovationAI/REVEL-RIZZ-API/resolve/main/src/utils/models_loader.py
- Command line
-
hf download hf://spaces/DvorakInnovationAI/REVEL-RIZZ-API/src/utils/models_loader.py
-
curl -L -o models_loader.py https://huggingface.co/spaces/DvorakInnovationAI/REVEL-RIZZ-API/resolve/main/src/utils/models_loader.py
307 Bytes
| from langchain_groq import ChatGroq | |
| from dotenv import load_dotenv | |
| import os | |
| import easyocr | |
| load_dotenv() | |
| os.environ['GROQ_API_KEY']=os.getenv('GROQ_API_KEY') | |
| reply_llm = ChatGroq(model='llama-3.1-8b-instant') | |
| ocr_llm = "gemini-2.5-flash" | |
| lang_list = ['en'] | |
| reader = easyocr.Reader(lang_list, gpu=True) |