cryogenic22 commited on
Commit
87ceabc
·
verified ·
1 Parent(s): e791505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -39,9 +39,11 @@ class BookWritingApp:
39
  Initialize project orchestrator
40
  """
41
  try:
42
- # Create project orchestrator
43
- # Note: You may need to adjust this based on how you want to handle API keys
44
  st.session_state.project_orchestrator = BookWritingOrchestrator()
 
 
 
 
45
  except Exception as e:
46
  st.error(f"Error setting up project orchestrator: {e}")
47
  st.session_state.project_orchestrator = None
 
39
  Initialize project orchestrator
40
  """
41
  try:
 
 
42
  st.session_state.project_orchestrator = BookWritingOrchestrator()
43
+ except ValueError as ve:
44
+ st.error(f"API Key Error: {str(ve)}")
45
+ st.info("Please ensure your API keys are properly set in the environment variables.")
46
+ st.session_state.project_orchestrator = None
47
  except Exception as e:
48
  st.error(f"Error setting up project orchestrator: {e}")
49
  st.session_state.project_orchestrator = None