Update app.py
Browse files
app.py
CHANGED
@@ -172,7 +172,8 @@ def create_demo():
|
|
172 |
async def process_input(space_system_description, history, api_key):
|
173 |
nonlocal space_crew
|
174 |
if not api_key:
|
175 |
-
|
|
|
176 |
|
177 |
if space_crew is None:
|
178 |
space_crew = SpaceSystemCrew(api_key=api_key)
|
|
|
172 |
async def process_input(space_system_description, history, api_key):
|
173 |
nonlocal space_crew
|
174 |
if not api_key:
|
175 |
+
yield [{"role": "assistant", "content": "Please provide an OpenAI API key."}]
|
176 |
+
return
|
177 |
|
178 |
if space_crew is None:
|
179 |
space_crew = SpaceSystemCrew(api_key=api_key)
|