Spaces:
Running
Running
Update app.py
Browse files
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=
|
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 |
|