ruslanmv commited on
Commit
17572e2
·
1 Parent(s): b956ac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: 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:
 
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: