File size: 579 Bytes
92fa55d bcc064d 92fa55d 2814dce 906a6e5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import logging
# Configure logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[
logging.StreamHandler(),
logging.FileHandler('app.log')
]
)
# Quran data configuration (included for compatibility with app.py, though not used by quran_search.py)
QURAN_DATA_SOURCES = [
"https://cdn.jsdelivr.net/npm/quran-json@3.1.2/dist/quran.json" # Fallback, kept for app.py
]
# Model configuration
MODEL_NAME = 'paraphrase-multilingual-MiniLM-L12-v2'
CHUNK_SIZE = 25 # Reduced for memory safety |