Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|