K00B404 commited on
Commit
cdf9332
·
verified ·
1 Parent(s): c5e29f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ async def infer(model_str, prompt, seed=-1):
28
  asyncio.to_thread(models_load[model_str].fn, prompt=prompt, seed=seed, token=HF_TOKEN)
29
  )
30
  await asyncio.sleep(0)
31
- result = await asyncio.wait_for(task, timeout=300)
32
  return result
33
 
34
 
 
28
  asyncio.to_thread(models_load[model_str].fn, prompt=prompt, seed=seed, token=HF_TOKEN)
29
  )
30
  await asyncio.sleep(0)
31
+ result = await asyncio.wait_for(task, timeout=600)
32
  return result
33
 
34