Spaces:
Sleeping
Sleeping
bsiddhharth commited on
Commit ·
50c3f7b
1
Parent(s): 19cb911
Updated the groq_api to deploy in the streamlit
Browse files- cv_analyzer_search.py +3 -2
- extraction.py +3 -2
- requirements.txt +1 -1
cv_analyzer_search.py
CHANGED
|
@@ -24,8 +24,9 @@ def make_clickable_link(link):
|
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
-
os.environ['GROQ_API_KEY'] = os.getenv("GROQ_API_KEY")
|
| 28 |
-
groq_api_key = os.getenv("GROQ_API_KEY")
|
|
|
|
| 29 |
|
| 30 |
# Configure logging
|
| 31 |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
+
# os.environ['GROQ_API_KEY'] = os.getenv("GROQ_API_KEY")
|
| 28 |
+
# groq_api_key = os.getenv("GROQ_API_KEY")
|
| 29 |
+
groq_api_key = st.secrets["GROQ_API_KEY"]
|
| 30 |
|
| 31 |
# Configure logging
|
| 32 |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
extraction.py
CHANGED
|
@@ -53,8 +53,9 @@ def initialize_llm() -> ChatGroq:
|
|
| 53 |
|
| 54 |
"""Initialize the language model."""
|
| 55 |
|
| 56 |
-
os.environ['GROQ_API_KEY'] = os.getenv("GROQ_API_KEY")
|
| 57 |
-
groq_api_key = os.getenv("GROQ_API_KEY")
|
|
|
|
| 58 |
|
| 59 |
if not groq_api_key:
|
| 60 |
logger.error("GROQ_API_KEY is not set")
|
|
|
|
| 53 |
|
| 54 |
"""Initialize the language model."""
|
| 55 |
|
| 56 |
+
# os.environ['GROQ_API_KEY'] = os.getenv("GROQ_API_KEY")
|
| 57 |
+
# groq_api_key = os.getenv("GROQ_API_KEY")
|
| 58 |
+
groq_api_key = st.secrets["GROQ_API_KEY"]
|
| 59 |
|
| 60 |
if not groq_api_key:
|
| 61 |
logger.error("GROQ_API_KEY is not set")
|
requirements.txt
CHANGED
|
@@ -37,5 +37,5 @@ openai==1.53.0
|
|
| 37 |
langchain-groq==0.2.1
|
| 38 |
pdfplumber==0.11.4
|
| 39 |
prettytable==3.12.0
|
| 40 |
-
python-jobspy
|
| 41 |
scikit-learn==1.5.2
|
|
|
|
| 37 |
langchain-groq==0.2.1
|
| 38 |
pdfplumber==0.11.4
|
| 39 |
prettytable==3.12.0
|
| 40 |
+
python-jobspy
|
| 41 |
scikit-learn==1.5.2
|