Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ async def get_bot_response(adapter_id, prompt, state, bot_index):
|
|
109 |
except (aiohttp.ClientError, asyncio.TimeoutError):
|
110 |
response_text = "Sorry, I couldn't generate a response."
|
111 |
return response_text.split('### Instruction')[0]
|
112 |
-
def chat_with_bots(user_input, state):
|
113 |
# Use existing bot order from state if available, otherwise shuffle and initialize
|
114 |
if 'last_bots' not in state or not state['last_bots']:
|
115 |
random.shuffle(chatbots)
|
|
|
109 |
except (aiohttp.ClientError, asyncio.TimeoutError):
|
110 |
response_text = "Sorry, I couldn't generate a response."
|
111 |
return response_text.split('### Instruction')[0]
|
112 |
+
async def chat_with_bots(user_input, state):
|
113 |
# Use existing bot order from state if available, otherwise shuffle and initialize
|
114 |
if 'last_bots' not in state or not state['last_bots']:
|
115 |
random.shuffle(chatbots)
|