Spaces:
Running
Running
Update src/app_job_copy_1.py
Browse files- src/app_job_copy_1.py +2 -1
src/app_job_copy_1.py
CHANGED
@@ -11,6 +11,7 @@ from langchain_core.prompts import ChatPromptTemplate
|
|
11 |
from langchain_core.output_parsers import StrOutputParser
|
12 |
from langchain_core.prompts import PromptTemplate
|
13 |
import gspread
|
|
|
14 |
from google.oauth2 import service_account
|
15 |
import tiktoken
|
16 |
|
@@ -19,7 +20,7 @@ st.set_page_config(
|
|
19 |
page_icon="π¨βπ»π―",
|
20 |
layout="wide"
|
21 |
)
|
22 |
-
os.environ["STREAMLIT_HOME"] =
|
23 |
# Define pydantic model for structured output
|
24 |
class Shortlist(BaseModel):
|
25 |
fit_score: float = Field(description="A score between 0 and 10 indicating how closely the candidate profile matches the job requirements upto 3 decimal points.")
|
|
|
11 |
from langchain_core.output_parsers import StrOutputParser
|
12 |
from langchain_core.prompts import PromptTemplate
|
13 |
import gspread
|
14 |
+
import tempfile
|
15 |
from google.oauth2 import service_account
|
16 |
import tiktoken
|
17 |
|
|
|
20 |
page_icon="π¨βπ»π―",
|
21 |
layout="wide"
|
22 |
)
|
23 |
+
os.environ["STREAMLIT_HOME"] = tempfile.gettempdir()
|
24 |
# Define pydantic model for structured output
|
25 |
class Shortlist(BaseModel):
|
26 |
fit_score: float = Field(description="A score between 0 and 10 indicating how closely the candidate profile matches the job requirements upto 3 decimal points.")
|