DrishtiSharma commited on
Commit
7a51495
·
verified ·
1 Parent(s): 9edc889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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("📌 About:")
22
- st.info("🔹 This app uses the 'gpt-4o-mini-2024-07-18' model.\n"
23
- "🔹 Writing essays may take approximately 1-2 minutes.")
 
 
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}")