it a update
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import requests
|
|
3 |
import os
|
4 |
import subprocess
|
5 |
import threading
|
6 |
-
import sys
|
7 |
|
8 |
# API credentials for job search
|
9 |
API_KEY = "c1b9b6be0amsh11316ef9a922bdbp1789f5jsn18a0023eef11"
|
@@ -92,14 +91,14 @@ if st.button("Get Career Advice"):
|
|
92 |
st.subheader("Career Recommendations")
|
93 |
response = suggest_careers_groq(skills, interests, experience)
|
94 |
st.write(response if response else "No recommendations available.")
|
|
|
95 |
st.markdown("---")
|
96 |
st.markdown("<p style='text-align: center;'>Designed by Career Expert</p>", unsafe_allow_html=True)
|
97 |
""")
|
98 |
-
#
|
99 |
env = os.environ.copy()
|
100 |
-
sys.argv = ["streamlit", "run", "career_counselor.py"]
|
101 |
subprocess.Popen(
|
102 |
-
["streamlit", "run", "career_counselor.py"],
|
103 |
stdout=subprocess.DEVNULL,
|
104 |
stderr=subprocess.DEVNULL,
|
105 |
env=env
|
|
|
3 |
import os
|
4 |
import subprocess
|
5 |
import threading
|
|
|
6 |
|
7 |
# API credentials for job search
|
8 |
API_KEY = "c1b9b6be0amsh11316ef9a922bdbp1789f5jsn18a0023eef11"
|
|
|
91 |
st.subheader("Career Recommendations")
|
92 |
response = suggest_careers_groq(skills, interests, experience)
|
93 |
st.write(response if response else "No recommendations available.")
|
94 |
+
|
95 |
st.markdown("---")
|
96 |
st.markdown("<p style='text-align: center;'>Designed by Career Expert</p>", unsafe_allow_html=True)
|
97 |
""")
|
98 |
+
# Use a clean environment and launch via the Python module to avoid extra flags.
|
99 |
env = os.environ.copy()
|
|
|
100 |
subprocess.Popen(
|
101 |
+
["python", "-m", "streamlit", "run", "career_counselor.py"],
|
102 |
stdout=subprocess.DEVNULL,
|
103 |
stderr=subprocess.DEVNULL,
|
104 |
env=env
|