Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,10 +101,10 @@ def chat_ui(query, history, mode):
|
|
101 |
"""Handles the chat interaction for Analyzer, Debugger, and Developer modes."""
|
102 |
api_key = load_api_key()
|
103 |
if not api_key:
|
104 |
-
return "Error
|
105 |
|
106 |
if not is_project_loaded():
|
107 |
-
return "Error
|
108 |
|
109 |
# Initialize history if None
|
110 |
if history is None:
|
|
|
101 |
"""Handles the chat interaction for Analyzer, Debugger, and Developer modes."""
|
102 |
api_key = load_api_key()
|
103 |
if not api_key:
|
104 |
+
return [("Error", "OpenAI API key not set. Please set the API key in the Settings tab.")], []
|
105 |
|
106 |
if not is_project_loaded():
|
107 |
+
return [("Error", "No project loaded. Please upload and process a ZIP file first.")], []
|
108 |
|
109 |
# Initialize history if None
|
110 |
if history is None:
|