mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
try fix #815
This commit is contained in:
@@ -9,6 +9,9 @@ from typing import Any, Literal
|
||||
import numpy as np
|
||||
import PIL
|
||||
import PIL.ImageOps
|
||||
import gradio.routes
|
||||
import importlib
|
||||
|
||||
from gradio_client import utils as client_utils
|
||||
from gradio_client.documentation import document, set_documentation_group
|
||||
from gradio_client.serializing import ImgSerializable
|
||||
@@ -461,3 +464,17 @@ def blk_ini(self, *args, **kwargs):
|
||||
|
||||
Block.__init__ = blk_ini
|
||||
|
||||
|
||||
gradio.routes.asyncio = importlib.reload(gradio.routes.asyncio)
|
||||
|
||||
if not hasattr(gradio.routes.asyncio, 'original_wait_for'):
|
||||
gradio.routes.asyncio.original_wait_for = gradio.routes.asyncio.wait_for
|
||||
|
||||
|
||||
def patched_wait_for(fut, timeout):
|
||||
del timeout
|
||||
return gradio.routes.asyncio.original_wait_for(fut, timeout=65535)
|
||||
|
||||
|
||||
gradio.routes.asyncio.wait_for = patched_wait_for
|
||||
|
||||
|
||||
Reference in New Issue
Block a user