Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import os
|
|
3 |
from groq import Groq
|
4 |
|
5 |
# Set up page configuration
|
6 |
-
st.set_page_config(page_title="EduNexus", page_icon=":book:", layout="wide")
|
7 |
|
8 |
# Set the Groq API key
|
9 |
-
os.environ["GROQ_API_KEY"] = "
|
10 |
|
11 |
# Initialize Groq client
|
12 |
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
@@ -196,7 +196,7 @@ elif selected_task == "🧠 Mental Health Check-In":
|
|
196 |
with col1:
|
197 |
submit_button = st.form_submit_button("Get Advice")
|
198 |
with col2:
|
199 |
-
clear_button = st.
|
200 |
if submit_button:
|
201 |
response = mental_health_check_in(feelings)
|
202 |
st.write(response)
|
|
|
3 |
from groq import Groq
|
4 |
|
5 |
# Set up page configuration
|
6 |
+
st.set_page_config(page_title="EduNexus📖", page_icon=":book:", layout="wide")
|
7 |
|
8 |
# Set the Groq API key
|
9 |
+
os.environ["GROQ_API_KEY"] = "your_groq_api_key_here" # Replace with your actual API key
|
10 |
|
11 |
# Initialize Groq client
|
12 |
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
|
|
196 |
with col1:
|
197 |
submit_button = st.form_submit_button("Get Advice")
|
198 |
with col2:
|
199 |
+
clear_button = st.form_submit_button("Clear")
|
200 |
if submit_button:
|
201 |
response = mental_health_check_in(feelings)
|
202 |
st.write(response)
|