Spaces:
Build error
Build error
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files5 unmodified lines678910117 unmodified lines192021222324255 unmodified linesimport numpy as npfrom groq import Client# Load Hugging Face SecretsHUGGINGFACE_KEY = os.getenv("HUGGINGFACE_KEY")if not HUGGINGFACE_KEY:7 unmodified lines# Define file path and vector store folderfile_path = "Atomic habits ( PDFDrive ).pdf" # File directly in the root directory of the appVECTORSTORE_FOLDER = "vectorstore"# Ensure the vector store folder existsif not os.path.exists(VECTORSTORE_FOLDER):5 unmodified lines67891011121314151617181920212223242526277 unmodified lines353637383940415 unmodified linesimport numpy as npfrom groq import Client# Set background imagebackground_image_url = "https://jamesclear.com/wp-content/uploads/2020/11/atomic-habits_gallery_hi-res_01.jpg"st.markdown(f"""<style>.stApp {{background-image: url("{background_image_url}");background-size: cover;background-position: center center;background-repeat: no-repeat;}}</style>""",unsafe_allow_html=True)# Load Hugging Face SecretsHUGGINGFACE_KEY = os.getenv("HUGGINGFACE_KEY")if not HUGGINGFACE_KEY:7 unmodified lines# Define file path and vector store folderfile_path = "Atomic habits ( PDFDrive ).pdf" # File directly in the root directory of the appVECTORSTORE_FOLDER = "vectorstore" # Folder in the root directory# Ensure the vector store folder existsif not os.path.exists(VECTORSTORE_FOLDER):
app.py+17-1