rwitz commited on
Commit
583cdf6
·
verified ·
1 Parent(s): b3924f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ async def get_bot_response(adapter_id, prompt, state, bot_index):
100
  async with aiohttp.ClientSession() as session:
101
  try:
102
  async with session.post("https://serving.app.predibase.com/79957f/deployments/v2/llms/mistral-7b/generate",
103
- json=payload, headers=headers, timeout=10) as response:
104
  if response.status == 200:
105
  response_data = await response.json()
106
  response_text = response_data.get('generated_text', '')
 
100
  async with aiohttp.ClientSession() as session:
101
  try:
102
  async with session.post("https://serving.app.predibase.com/79957f/deployments/v2/llms/mistral-7b/generate",
103
+ json=payload, headers=headers, timeout=30) as response:
104
  if response.status == 200:
105
  response_data = await response.json()
106
  response_text = response_data.get('generated_text', '')