mdakhras commited on
Commit
ca697a4
·
verified ·
1 Parent(s): 6f936c5

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -4
src/streamlit_app.py CHANGED
@@ -1,4 +1,4 @@
1
- import streamlit as st
2
  import fitz # PyMuPDF
3
  from dotenv import load_dotenv
4
  import io
@@ -7,7 +7,9 @@ import requests
7
  #openAI
8
  # from langchain_openai import AzureChatOpenAI
9
 
10
-
 
 
11
  # Load environment variables from .env file
12
  load_dotenv()
13
 
@@ -21,8 +23,6 @@ HuggingFace_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
21
 
22
 
23
 
24
- # Set the cache directory to a folder inside your project space
25
- os.environ["STREAMLIT_CACHE_DIR"] = os.path.join(os.getcwd(), ".streamlit_cache")
26
 
27
  # Check if the necessary environment variables are loaded
28
  if not API_KEY or not ENDPOINT or not DEPLOYMENT_NAME:
 
1
+
2
  import fitz # PyMuPDF
3
  from dotenv import load_dotenv
4
  import io
 
7
  #openAI
8
  # from langchain_openai import AzureChatOpenAI
9
 
10
+ # Set the cache directory to a folder inside your project space
11
+ os.environ["STREAMLIT_CACHE_DIR"] = os.path.join(os.getcwd(), ".streamlit_cache")
12
+ import streamlit as st
13
  # Load environment variables from .env file
14
  load_dotenv()
15
 
 
23
 
24
 
25
 
 
 
26
 
27
  # Check if the necessary environment variables are loaded
28
  if not API_KEY or not ENDPOINT or not DEPLOYMENT_NAME: