Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,15 +6,6 @@ from langchain_openai import ChatOpenAI
|
|
6 |
from langchain_anthropic import ChatAnthropic
|
7 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
8 |
|
9 |
-
###### dotenv を利用する場合 ######
|
10 |
-
try:
|
11 |
-
from dotenv import load_dotenv
|
12 |
-
load_dotenv()
|
13 |
-
except ImportError:
|
14 |
-
import warnings
|
15 |
-
warnings.warn("dotenv not found. Please make sure to set your environment variables manually.", ImportWarning)
|
16 |
-
################################################
|
17 |
-
|
18 |
|
19 |
PROMPT = """
|
20 |
## Task: Provide detailed and personalized career advice based on the user's current situation and aspirations.
|
@@ -63,6 +54,10 @@ def init_chain():
|
|
63 |
|
64 |
def main():
|
65 |
init_page()
|
|
|
|
|
|
|
|
|
66 |
chain = init_chain()
|
67 |
if chain:
|
68 |
input_status = st.selectbox("Current Career Status",("Student", "Entry-Level Employee", "Senior-Level Employee", "Career Changer", "Unemployed/Job Seeker", "Entrepreneur"),key="input_status")
|
@@ -79,20 +74,5 @@ def main():
|
|
79 |
if __name__ == '__main__':
|
80 |
main()
|
81 |
|
82 |
-
# Style adjustments (optional, remove if not needed)
|
83 |
-
st.markdown(
|
84 |
-
"""
|
85 |
-
<style>
|
86 |
-
/* Custom style adjustments */
|
87 |
-
.st-emotion-cache-15ecox0 { display: none !important; }
|
88 |
-
@media (max-width: 50.5rem) {
|
89 |
-
.st-emotion-cache-13ln4jf {
|
90 |
-
max-width: calc(0rem + 100vw);
|
91 |
-
}
|
92 |
-
}
|
93 |
-
</style>
|
94 |
-
""",
|
95 |
-
unsafe_allow_html=True,
|
96 |
-
)
|
97 |
|
98 |
|
|
|
6 |
from langchain_anthropic import ChatAnthropic
|
7 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
PROMPT = """
|
11 |
## Task: Provide detailed and personalized career advice based on the user's current situation and aspirations.
|
|
|
54 |
|
55 |
def main():
|
56 |
init_page()
|
57 |
+
# Style adjustments (optional, remove if not needed)
|
58 |
+
st.markdown("""<style>.st-emotion-cache-15ecox0 { display: none !important; }
|
59 |
+
@media (max-width: 50.5rem) {.st-emotion-cache-13ln4jf {max-width: calc(0rem + 100vw);}}
|
60 |
+
</style>""",unsafe_allow_html=True,)
|
61 |
chain = init_chain()
|
62 |
if chain:
|
63 |
input_status = st.selectbox("Current Career Status",("Student", "Entry-Level Employee", "Senior-Level Employee", "Career Changer", "Unemployed/Job Seeker", "Entrepreneur"),key="input_status")
|
|
|
74 |
if __name__ == '__main__':
|
75 |
main()
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
|