Spaces:
Sleeping
Sleeping
Update agents/research_agent.py
Browse files- agents/research_agent.py +1 -1
agents/research_agent.py
CHANGED
|
@@ -13,7 +13,7 @@ class ResearchAgent:
|
|
| 13 |
print("Initializing RelevanceChecker with lightweight Hugging Face model...")
|
| 14 |
|
| 15 |
# Use a smaller, CPU-friendly model by default
|
| 16 |
-
model_name = getattr(settings, "
|
| 17 |
|
| 18 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 19 |
|
|
|
|
| 13 |
print("Initializing RelevanceChecker with lightweight Hugging Face model...")
|
| 14 |
|
| 15 |
# Use a smaller, CPU-friendly model by default
|
| 16 |
+
model_name = getattr(settings, "HF_MODEL_NAME")
|
| 17 |
|
| 18 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 19 |
|