AbhijitClemson commited on
Commit
e7f2532
Β·
verified Β·
1 Parent(s): 5f4714e

Update page_files/categorized/Backend/PDF_DataExtraction.py

Browse files
page_files/categorized/Backend/PDF_DataExtraction.py CHANGED
@@ -173,7 +173,6 @@ def _prewarm_embed_model() -> None:
173
  except Exception as e:
174
  log.warning(f"Embed model pre-warm failed: {e}")
175
 
176
- threading.Thread(target=_prewarm_embed_model, daemon=True).start()
177
  # ── Batching ─────────────────────────────────────────────────────────────────
178
 
179
  # ── Adaptive config (probed at startup, falls back to safe defaults) ──────
@@ -659,6 +658,7 @@ def _get_embed_model() -> Any:
659
  log.info("Embedding model ready.")
660
  return _embed_model
661
 
 
662
 
663
  def _get_chroma_collection() -> Any:
664
  global _chroma_client, _chroma_collection
 
173
  except Exception as e:
174
  log.warning(f"Embed model pre-warm failed: {e}")
175
 
 
176
  # ── Batching ─────────────────────────────────────────────────────────────────
177
 
178
  # ── Adaptive config (probed at startup, falls back to safe defaults) ──────
 
658
  log.info("Embedding model ready.")
659
  return _embed_model
660
 
661
+ threading.Thread(target=_prewarm_embed_model, daemon=True).start()
662
 
663
  def _get_chroma_collection() -> Any:
664
  global _chroma_client, _chroma_collection