Spaces:
Sleeping
Sleeping
Update app.py
Browse files17 unmodified lines1819202122232425262728293017 unmodified lines faiss_index, chunk_texts, chunks = build_faiss_index(chunks) return f"✅ Uploaded and indexed {len(chunks)} chunks."
def extract_text_from_pdf(file_path): doc = fitz.open(file_path) # file_path is already a string pages = [page.get_text() for page in doc] return pages
def set_api_key(api_key): global groq_api_key groq_api_key = api_keyapp.py+7