Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,11 @@ if "chat_active" not in st.session_state:
|
|
18 |
|
19 |
# Sidebar with essay settings and user-defined length
|
20 |
with st.sidebar:
|
21 |
-
st.subheader("
|
22 |
-
st.info(
|
23 |
-
|
|
|
|
|
24 |
|
25 |
# API Key Retrieval
|
26 |
openai_key = st.secrets.get("OPENAI_API_KEY", "")
|
@@ -62,7 +64,7 @@ def initialize_agents():
|
|
62 |
st.session_state["chat_active"] = False
|
63 |
|
64 |
# Success message
|
65 |
-
st.success("✅ Agents successfully initialized!")
|
66 |
return essay_writer
|
67 |
except Exception as e:
|
68 |
st.error(f"❌ Error initializing agents: {e}")
|
|
|
18 |
|
19 |
# Sidebar with essay settings and user-defined length
|
20 |
with st.sidebar:
|
21 |
+
st.subheader("About:")
|
22 |
+
st.info(
|
23 |
+
"\n\n* This app uses the 'gpt-4o-mini-2024-07-18' model."
|
24 |
+
"\n\n* Writing essays may take some time, approximately 1-2 minutes."
|
25 |
+
)
|
26 |
|
27 |
# API Key Retrieval
|
28 |
openai_key = st.secrets.get("OPENAI_API_KEY", "")
|
|
|
64 |
st.session_state["chat_active"] = False
|
65 |
|
66 |
# Success message
|
67 |
+
#st.success("✅ Agents successfully initialized!")
|
68 |
return essay_writer
|
69 |
except Exception as e:
|
70 |
st.error(f"❌ Error initializing agents: {e}")
|