Spaces:
Runtime error

PavanKumarD commited on
Commit
ccbe236
·
verified ·
1 Parent(s): 96b4219

Update app/backend.py

Browse files
Files changed (1) hide show
  1. app/backend.py +1 -1
app/backend.py CHANGED
@@ -17,7 +17,7 @@ else:
17
  raise ValueError("GEMINI_API_KEY not found in environment variables")
18
 
19
  # Load models
20
- embedding_model = SentenceTransformer("models/ll-MiniLM-L6-v2")
21
  generation_model = genai.GenerativeModel("gemini-1.5-flash-002")
22
 
23
  # ✅ Extract text from PDF URL
 
17
  raise ValueError("GEMINI_API_KEY not found in environment variables")
18
 
19
  # Load models
20
+ embedding_model = SentenceTransformer("models/all-MiniLM-L6-v2")
21
  generation_model = genai.GenerativeModel("gemini-1.5-flash-002")
22
 
23
  # ✅ Extract text from PDF URL