Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'dataset' #5017

Closed
1 task done
vax521 opened this issue Jul 25, 2023 · 10 comments
Closed
1 task done

KeyError: 'dataset' #5017

vax521 opened this issue Jul 25, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@vax521
Copy link

vax521 commented Jul 25, 2023

Describe the bug

The UI is displayed normally, but the function cannot be used。

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

https://huggingface.co/spaces/xiaofeifei/HRMaster

Screenshot

No response

Logs

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/user/.local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
    return await self.app(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/fastapi/applications.py", line 289, in __call__
    await super().__call__(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/home/user/.local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in __call__
    await self.app(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/home/user/.local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/home/user/.local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/home/user/.local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/home/user/.local/lib/python3.10/site-packages/fastapi/routing.py", line 273, in app
    raw_response = await run_endpoint_function(
  File "/home/user/.local/lib/python3.10/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
  File "/home/user/.local/lib/python3.10/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
  File "/home/user/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/home/user/.local/lib/python3.10/site-packages/gradio/routes.py", line 291, in api_info
    return gradio.blocks.get_api_info(config, serialize)  # type: ignore
  File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 528, in get_api_info
    serializer = serializing.COMPONENT_MAPPING[type]()
KeyError: 'dataset'

System Info

python:3.10@sha256:1b2e0805e24189fbba4e55b9bee89e3c25533cbe4fb71ae151f3e7ae0c9b86c5
gradio==3.36.1

The app runs normally in the local environment。
local environment is as follows:
Python 3.8.16
gradio==3.36.1

Severity

Blocking usage of gradio

@vax521 vax521 added the bug Something isn't working label Jul 25, 2023
@freddyaboulton
Copy link
Collaborator

Can you please upgrade your version of gradio_client?

@vax521
Copy link
Author

vax521 commented Jul 25, 2023

how to upgrade my version of gradio_client?
it was defined in Dockerfile by command "RUN pip install --no-cache-dir gradio==3.36.1"

@freddyaboulton
Copy link
Collaborator

Is it possible to use version 3.37.0?

@Franky-in
Copy link

Is it possible to use version 3.37.0?

I find the same problem with 3.36.0. I try the same code on 3.37.0,now the problem is solved. Thanks for reply.

@vax521
Copy link
Author

vax521 commented Jul 27, 2023

Is it possible to use version 3.37.0?

My gradio app is deployed on huggingface spaces. the version of gradio_client is defined in Dockerfile. The build logs is as follows:
`--> FROM docker.io/library/python:3.10@sha256:1b2e0805e24189fbba4e55b9bee89e3c25533cbe4fb71ae151f3e7ae0c9b86c5
DONE 0.0s

--> RUN useradd -m -u 1000 user
CACHED

--> WORKDIR /home/user/app
CACHED

--> RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
CACHED

--> RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0"
CACHED

--> RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
CACHED

--> RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
DONE 6.7s

DONE 7.0s

DONE 9.3s

--> RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting openai
Downloading openai-0.27.8-py3-none-any.whl (73 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.6/73.6 kB 6.3 MB/s eta 0:00:00
Collecting gradio==3.37.0
Downloading gradio-3.37.0-py3-none-any.whl (19.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.8/19.8 MB 215.8 MB/s eta 0:00:00
Collecting plotly
Downloading plotly-5.15.0-py2.py3-none-any.whl (15.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.5/15.5 MB 284.1 MB/s eta 0:00:00
Collecting gradio-client>=0.2.10
Downloading gradio_client-0.3.0-py3-none-any.whl (294 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.2/294.2 kB 465.5 MB/s eta 0:00:00
Collecting pillow<11.0,>=8.0
Downloading Pillow-10.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 325.9 MB/s eta 0:00:00
Collecting websockets<12.0,>=10.0
Downloading websockets-11.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 129.9/129.9 kB 381.6 MB/s eta 0:00:00
Collecting fastapi
Downloading fastapi-0.100.0-py3-none-any.whl (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.7/65.7 kB 319.6 MB/s eta 0:00:00
Requirement already satisfied: requests~=2.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (2.31.0)
Collecting jinja2<4.0
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 405.9 MB/s eta 0:00:00
Requirement already satisfied: aiohttp~=3.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (3.8.5)
Requirement already satisfied: packaging in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (23.1)
Collecting httpx
Downloading httpx-0.24.1-py3-none-any.whl (75 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.4/75.4 kB 362.3 MB/s eta 0:00:00
Collecting python-multipart
Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 kB 288.9 MB/s eta 0:00:00
Requirement already satisfied: pyyaml<7.0,>=5.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (6.0.1)
Collecting ffmpy
Downloading ffmpy-0.3.1.tar.gz (5.5 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting altair<6.0,>=4.2.0
Downloading altair-5.0.1-py3-none-any.whl (471 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 471.5/471.5 kB 417.0 MB/s eta 0:00:00
Collecting pydub
Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Requirement already satisfied: huggingface-hub>=0.14.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (0.16.4)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (1.10.12)
Collecting mdit-py-plugins<=0.3.3
Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 kB 315.3 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions~=4.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (4.7.1)
Requirement already satisfied: pandas<3.0,>=1.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (2.0.3)
Collecting markupsafe~=2.0
Downloading MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Requirement already satisfied: numpy~=1.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.37.0->-r requirements.txt (line 2)) (1.25.1)
Collecting aiofiles<24.0,>=22.0
Downloading aiofiles-23.1.0-py3-none-any.whl (14 kB)
Collecting markdown-it-py[linkify]>=2.0.0
Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 kB 345.9 MB/s eta 0:00:00
Collecting orjson~=3.0
Downloading orjson-3.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (138 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.7/138.7 kB 383.9 MB/s eta 0:00:00
Collecting semantic-version~=2.0
Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting matplotlib~=3.0
Downloading matplotlib-3.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 274.8 MB/s eta 0:00:00
Collecting uvicorn>=0.14.0
Downloading uvicorn-0.23.1-py3-none-any.whl (59 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.5/59.5 kB 332.8 MB/s eta 0:00:00
Requirement already satisfied: tqdm in /home/user/.local/lib/python3.10/site-packages (from openai->-r requirements.txt (line 1)) (4.65.0)
Collecting tenacity>=6.2.0
Downloading tenacity-8.2.2-py3-none-any.whl (24 kB)
Requirement already satisfied: aiosignal>=1.1.2 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (1.3.1)
Requirement already satisfied: frozenlist>=1.1.1 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (1.4.0)
Requirement already satisfied: attrs>=17.3.0 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (23.1.0)
Requirement already satisfied: yarl<2.0,>=1.0 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (1.9.2)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (3.2.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/user/.local/lib/python3.10/site-packages (from aiohttp~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (4.0.2)
Collecting toolz
Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 272.5 MB/s eta 0:00:00
Collecting jsonschema>=3.0
Downloading jsonschema-4.18.4-py3-none-any.whl (80 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.0/81.0 kB 364.7 MB/s eta 0:00:00
Requirement already satisfied: fsspec in /home/user/.local/lib/python3.10/site-packages (from gradio-client>=0.2.10->gradio==3.37.0->-r requirements.txt (line 2)) (2023.6.0)
Requirement already satisfied: filelock in /home/user/.local/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio==3.37.0->-r requirements.txt (line 2)) (3.12.2)
Collecting mdurl~=0.1
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting linkify-it-py<3,>=1
Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)
Collecting contourpy>=1.0.1
Downloading contourpy-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 300.7/300.7 kB 435.3 MB/s eta 0:00:00
Collecting pyparsing<3.1,>=2.3.1
Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 374.9 MB/s eta 0:00:00
Requirement already satisfied: python-dateutil>=2.7 in /home/user/.local/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (2.8.2)
Collecting cycler>=0.10
Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
Downloading fonttools-4.41.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 296.5 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.4.4-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 380.2 MB/s eta 0:00:00
Collecting mdit-py-plugins<=0.3.3
Downloading mdit_py_plugins-0.3.2-py3-none-any.whl (50 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.4/50.4 kB 328.6 MB/s eta 0:00:00
Downloading mdit_py_plugins-0.3.1-py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.5/46.5 kB 310.3 MB/s eta 0:00:00
Downloading mdit_py_plugins-0.3.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.7/43.7 kB 312.7 MB/s eta 0:00:00
Downloading mdit_py_plugins-0.2.8-py3-none-any.whl (41 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.0/41.0 kB 252.5 MB/s eta 0:00:00
Downloading mdit_py_plugins-0.2.7-py3-none-any.whl (41 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.0/41.0 kB 296.6 MB/s eta 0:00:00
Downloading mdit_py_plugins-0.2.6-py3-none-any.whl (39 kB)
Downloading mdit_py_plugins-0.2.5-py3-none-any.whl (39 kB)
Downloading mdit_py_plugins-0.2.4-py3-none-any.whl (39 kB)
Downloading mdit_py_plugins-0.2.3-py3-none-any.whl (39 kB)
Downloading mdit_py_plugins-0.2.2-py3-none-any.whl (39 kB)
Downloading mdit_py_plugins-0.2.1-py3-none-any.whl (38 kB)
Downloading mdit_py_plugins-0.2.0-py3-none-any.whl (38 kB)
Downloading mdit_py_plugins-0.1.0-py3-none-any.whl (37 kB)
INFO: pip is looking at multiple versions of matplotlib to determine which version is compatible with other requirements. This could take a while.
Collecting matplotlib~=3.0
Downloading matplotlib-3.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 278.0 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of markupsafe to determine which version is compatible with other requirements. This could take a while.
Collecting markupsafe~=2.0
Downloading MarkupSafe-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
INFO: pip is looking at multiple versions of markdown-it-py[linkify] to determine which version is compatible with other requirements. This could take a while.
Collecting markdown-it-py[linkify]>=2.0.0
Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 kB 382.6 MB/s eta 0:00:00
Requirement already satisfied: tzdata>=2022.1 in /home/user/.local/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==3.37.0->-r requirements.txt (line 2)) (2023.3)
Requirement already satisfied: pytz>=2020.1 in /home/user/.local/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==3.37.0->-r requirements.txt (line 2)) (2023.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.local/lib/python3.10/site-packages (from requests~=2.0->gradio==3.37.0->-r requirements.txt (line 2)) (2023.7.22)
Requirement already satisfied: idna<4,>=2.5 in /home/user/.local/lib/python3.10/site-packages (from requests~=2.0->gradio==3.37.0->-r requirements.txt (line 2)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/user/.local/lib/python3.10/site-packages (from requests~=2.0->gradio==3.37.0->-r requirements.txt (line 2)) (2.0.4)
Collecting h11>=0.8
Downloading h11-0.14.0-py3-none-any.whl (58 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 324.1 MB/s eta 0:00:00
Requirement already satisfied: click>=7.0 in /home/user/.local/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio==3.37.0->-r requirements.txt (line 2)) (8.0.4)
Collecting starlette<0.28.0,>=0.27.0
Downloading starlette-0.27.0-py3-none-any.whl (66 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.0/67.0 kB 331.0 MB/s eta 0:00:00
Collecting sniffio
Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting httpcore<0.18.0,>=0.15.0
Downloading httpcore-0.17.3-py3-none-any.whl (74 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.5/74.5 kB 334.8 MB/s eta 0:00:00
Collecting anyio<5.0,>=3.0
Downloading anyio-3.7.1-py3-none-any.whl (80 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 367.2 MB/s eta 0:00:00
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 438.5 MB/s eta 0:00:00
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting referencing>=0.28.4
Downloading referencing-0.30.0-py3-none-any.whl (25 kB)
Collecting uc-micro-py
Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)
Requirement already satisfied: six>=1.5 in /home/user/.local/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==3.37.0->-r requirements.txt (line 2)) (1.16.0)
Collecting exceptiongroup
Downloading exceptiongroup-1.1.2-py3-none-any.whl (14 kB)
Building wheels for collected packages: ffmpy
Building wheel for ffmpy (setup.py): started
Building wheel for ffmpy (setup.py): finished with status 'done'
Created wheel for ffmpy: filename=ffmpy-0.3.1-py3-none-any.whl size=5579 sha256=513a7fe9a54b0b8e546790977a1c5cb3379d9f8b2c42f4c2963081c9f8d8540e
Stored in directory: /tmp/pip-ephem-wheel-cache-nhfj2d3i/wheels/25/a7/dd/c513d5a67b9610660774187483d20314b63e406dd6687e4b4a
Successfully built ffmpy
Installing collected packages: pydub, ffmpy, websockets, uc-micro-py, toolz, tenacity, sniffio, semantic-version, rpds-py, python-multipart, pyparsing, pillow, orjson, mdurl, markupsafe, kiwisolver, h11, fonttools, exceptiongroup, cycler, contourpy, aiofiles, uvicorn, referencing, plotly, matplotlib, markdown-it-py, linkify-it-py, jinja2, anyio, starlette, openai, mdit-py-plugins, jsonschema-specifications, httpcore, jsonschema, httpx, fastapi, gradio-client, altair, gradio
Successfully installed aiofiles-23.1.0 altair-5.0.1 anyio-3.7.1 contourpy-1.1.0 cycler-0.11.0 exceptiongroup-1.1.2 fastapi-0.100.0 ffmpy-0.3.1 fonttools-4.41.1 gradio-3.37.0 gradio-client-0.3.0 h11-0.14.0 httpcore-0.17.3 httpx-0.24.1 jinja2-3.1.2 jsonschema-4.18.4 jsonschema-specifications-2023.7.1 kiwisolver-1.4.4 linkify-it-py-2.0.2 markdown-it-py-2.2.0 markupsafe-2.1.3 matplotlib-3.7.2 mdit-py-plugins-0.3.3 mdurl-0.1.2 openai-0.27.8 orjson-3.9.2 pillow-10.0.0 plotly-5.15.0 pydub-0.25.1 pyparsing-3.0.9 python-multipart-0.0.6 referencing-0.30.0 rpds-py-0.9.2 semantic-version-2.10.0 sniffio-1.3.0 starlette-0.27.0 tenacity-8.2.2 toolz-0.12.0 uc-micro-py-1.0.2 uvicorn-0.23.1 websockets-11.0.3

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: python -m pip install --upgrade pip
DONE 17.7s

--> RUN pip install --no-cache-dir gradio==3.36.1
Defaulting to user installation because normal site-packages is not writeable
Collecting gradio==3.36.1
Downloading gradio-3.36.1-py3-none-any.whl (19.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.8/19.8 MB 283.9 MB/s eta 0:00:00
Requirement already satisfied: pydantic in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (1.10.12)
Requirement already satisfied: markdown-it-py[linkify]>=2.0.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (2.2.0)
Requirement already satisfied: pyyaml in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (6.0.1)
Requirement already satisfied: semantic-version in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (2.10.0)
Requirement already satisfied: markupsafe in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (2.1.3)
Requirement already satisfied: websockets>=10.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (11.0.3)
Requirement already satisfied: altair>=4.2.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (5.0.1)
Requirement already satisfied: orjson in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (3.9.2)
Requirement already satisfied: pillow in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (10.0.0)
Requirement already satisfied: fastapi in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.100.0)
Requirement already satisfied: aiofiles in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (23.1.0)
Requirement already satisfied: uvicorn>=0.14.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.23.1)
Requirement already satisfied: matplotlib in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (3.7.2)
Requirement already satisfied: mdit-py-plugins<=0.3.3 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.3.3)
Requirement already satisfied: pydub in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.25.1)
Requirement already satisfied: pandas in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (2.0.3)
Requirement already satisfied: ffmpy in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.3.1)
Requirement already satisfied: requests in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (2.31.0)
Collecting pygments>=2.12.0
Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 93.3 MB/s eta 0:00:00
Requirement already satisfied: gradio-client>=0.2.7 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.3.0)
Requirement already satisfied: aiohttp in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (3.8.5)
Requirement already satisfied: jinja2 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (3.1.2)
Requirement already satisfied: huggingface-hub>=0.14.0 in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.16.4)
Requirement already satisfied: numpy in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (1.25.1)
Requirement already satisfied: python-multipart in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.0.6)
Requirement already satisfied: httpx in /home/user/.local/lib/python3.10/site-packages (from gradio==3.36.1) (0.24.1)
Requirement already satisfied: toolz in /home/user/.local/lib/python3.10/site-packages (from altair>=4.2.0->gradio==3.36.1) (0.12.0)
Requirement already satisfied: jsonschema>=3.0 in /home/user/.local/lib/python3.10/site-packages (from altair>=4.2.0->gradio==3.36.1) (4.18.4)
Requirement already satisfied: typing-extensions>=4.0.1 in /home/user/.local/lib/python3.10/site-packages (from altair>=4.2.0->gradio==3.36.1) (4.7.1)
Requirement already satisfied: packaging in /home/user/.local/lib/python3.10/site-packages (from gradio-client>=0.2.7->gradio==3.36.1) (23.1)
Requirement already satisfied: fsspec in /home/user/.local/lib/python3.10/site-packages (from gradio-client>=0.2.7->gradio==3.36.1) (2023.6.0)
Requirement already satisfied: tqdm>=4.42.1 in /home/user/.local/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio==3.36.1) (4.65.0)
Requirement already satisfied: filelock in /home/user/.local/lib/python3.10/site-packages (from huggingface-hub>=0.14.0->gradio==3.36.1) (3.12.2)
Requirement already satisfied: mdurl~=0.1 in /home/user/.local/lib/python3.10/site-packages (from markdown-it-py[linkify]>=2.0.0->gradio==3.36.1) (0.1.2)
Requirement already satisfied: linkify-it-py<3,>=1 in /home/user/.local/lib/python3.10/site-packages (from markdown-it-py[linkify]>=2.0.0->gradio==3.36.1) (2.0.2)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/user/.local/lib/python3.10/site-packages (from pandas->gradio==3.36.1) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /home/user/.local/lib/python3.10/site-packages (from pandas->gradio==3.36.1) (2023.3)
Requirement already satisfied: tzdata>=2022.1 in /home/user/.local/lib/python3.10/site-packages (from pandas->gradio==3.36.1) (2023.3)
Requirement already satisfied: idna<4,>=2.5 in /home/user/.local/lib/python3.10/site-packages (from requests->gradio==3.36.1) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/user/.local/lib/python3.10/site-packages (from requests->gradio==3.36.1) (2.0.4)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/user/.local/lib/python3.10/site-packages (from requests->gradio==3.36.1) (3.2.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.local/lib/python3.10/site-packages (from requests->gradio==3.36.1) (2023.7.22)
Requirement already satisfied: h11>=0.8 in /home/user/.local/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio==3.36.1) (0.14.0)
Requirement already satisfied: click>=7.0 in /home/user/.local/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio==3.36.1) (8.0.4)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/user/.local/lib/python3.10/site-packages (from aiohttp->gradio==3.36.1) (6.0.4)
Requirement already satisfied: attrs>=17.3.0 in /home/user/.local/lib/python3.10/site-packages (from aiohttp->gradio==3.36.1) (23.1.0)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/user/.local/lib/python3.10/site-packages (from aiohttp->gradio==3.36.1) (4.0.2)
Requirement already satisfied: frozenlist>=1.1.1 in /home/user/.local/lib/python3.10/site-packages (from aiohttp->gradio==3.36.1) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in /home/user/.local/lib/python3.10/site-packages (from aiohttp->gradio==3.36.1) (1.3.1)
Requirement already satisfied: yarl<2.0,>=1.0 in /home/user/.local/lib/python3.10/site-packages (from aiohttp->gradio==3.36.1) (1.9.2)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in /home/user/.local/lib/python3.10/site-packages (from fastapi->gradio==3.36.1) (0.27.0)
Requirement already satisfied: sniffio in /home/user/.local/lib/python3.10/site-packages (from httpx->gradio==3.36.1) (1.3.0)
Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /home/user/.local/lib/python3.10/site-packages (from httpx->gradio==3.36.1) (0.17.3)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in /home/user/.local/lib/python3.10/site-packages (from matplotlib->gradio==3.36.1) (3.0.9)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/user/.local/lib/python3.10/site-packages (from matplotlib->gradio==3.36.1) (1.4.4)
Requirement already satisfied: cycler>=0.10 in /home/user/.local/lib/python3.10/site-packages (from matplotlib->gradio==3.36.1) (0.11.0)
Requirement already satisfied: contourpy>=1.0.1 in /home/user/.local/lib/python3.10/site-packages (from matplotlib->gradio==3.36.1) (1.1.0)
Requirement already satisfied: fonttools>=4.22.0 in /home/user/.local/lib/python3.10/site-packages (from matplotlib->gradio==3.36.1) (4.41.1)
Requirement already satisfied: anyio<5.0,>=3.0 in /home/user/.local/lib/python3.10/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->gradio==3.36.1) (3.7.1)
Requirement already satisfied: rpds-py>=0.7.1 in /home/user/.local/lib/python3.10/site-packages (from jsonschema>=3.0->altair>=4.2.0->gradio==3.36.1) (0.9.2)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/user/.local/lib/python3.10/site-packages (from jsonschema>=3.0->altair>=4.2.0->gradio==3.36.1) (2023.7.1)
Requirement already satisfied: referencing>=0.28.4 in /home/user/.local/lib/python3.10/site-packages (from jsonschema>=3.0->altair>=4.2.0->gradio==3.36.1) (0.30.0)
Requirement already satisfied: uc-micro-py in /home/user/.local/lib/python3.10/site-packages (from linkify-it-py<3,>=1->markdown-it-py[linkify]>=2.0.0->gradio==3.36.1) (1.0.2)
Requirement already satisfied: six>=1.5 in /home/user/.local/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas->gradio==3.36.1) (1.16.0)
Requirement already satisfied: exceptiongroup in /home/user/.local/lib/python3.10/site-packages (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx->gradio==3.36.1) (1.1.2)
Installing collected packages: pygments, gradio
Attempting uninstall: gradio
Found existing installation: gradio 3.37.0
Uninstalling gradio-3.37.0:
Successfully uninstalled gradio-3.37.0
Successfully installed gradio-3.36.1 pygments-2.15.1

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: python -m pip install --upgrade pip
DONE 3.6s

--> COPY --link --chown=1000 --from=lfs /app /home/user/app
DONE 0.0s

--> COPY --link --chown=1000 ./ /home/user/app
DONE 0.0s

--> Pushing image
DONE 3.2s

--> Exporting cache
DONE 2.0s`
I set gradio_client version to 3.37.0 in the requirements.txt file,but It doesn't work.

@vax521
Copy link
Author

vax521 commented Jul 27, 2023

In addation,this issue occurred after I added some gr.Examples(). After I tried to delete all gr.Examples(), the problem disappeared.

@abidlabs
Copy link
Member

Hi @vax521, the issue is that you can't simply update the requirements.txt file in Spaces. You actually have to update the sdk_version in the README.md. I've opened a PR to make this change, which should fix your Space: https://huggingface.co/spaces/xiaofeifei/HRMaster/discussions/1

I think we can close this issue, but feel free to respond if this doesn't work for you!

@vax521
Copy link
Author

vax521 commented Jul 29, 2023

@fitnessboybiz
Copy link

I have this error when launching Stable Diffusion (MackBook M2 Max). Can you tell me what I need to correct?

Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
Startup time: 10.8s (launcher: 3.5s, import torch: 1.2s, import gradio: 0.4s, setup paths: 0.4s, other imports: 0.5s, load scripts: 0.7s, create ui: 1.2s, gradio launch: 2.4s, app_started_callback: 0.4s).
Applying attention optimization: InvokeAI... done.
Model loaded in 6.4s (load weights from disk: 0.2s, create model: 0.6s, apply weights to model: 3.5s, apply half(): 1.3s, move model to device: 0.6s, calculate empty prompt: 0.1s).
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/applications.py", line 273, in call
await super().call(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/cors.py", line 84, in call
await self.app(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in call
await responder(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/gradio/routes.py", line 271, in api_info
return gradio.blocks.get_api_info(config, serialize) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 504, in get_api_info
serializer = serializing.COMPONENT_MAPPINGtype
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'dataset'

@vax521
Copy link
Author

vax521 commented Aug 3, 2023

I have this error when launching Stable Diffusion (MackBook M2 Max). Can you tell me what I need to correct?

Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 10.8s (launcher: 3.5s, import torch: 1.2s, import gradio: 0.4s, setup paths: 0.4s, other imports: 0.5s, load scripts: 0.7s, create ui: 1.2s, gradio launch: 2.4s, app_started_callback: 0.4s). Applying attention optimization: InvokeAI... done. Model loaded in 6.4s (load weights from disk: 0.2s, create model: 0.6s, apply weights to model: 3.5s, apply half(): 1.3s, move model to device: 0.6s, calculate empty prompt: 0.1s). ERROR: Exception in ASGI application Traceback (most recent call last): File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/applications.py", line 273, in call await super().call(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in call raise exc File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call await self.app(scope, receive, _send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/cors.py", line 84, in call await self.app(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in call await responder(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in call await self.app(scope, receive, self.send_with_gzip) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call raise exc File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call await self.app(scope, receive, sender) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call raise e File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/routing.py", line 718, in call await route.handle(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/routing.py", line 66, in app response = await func(request) ^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/routing.py", line 237, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/fastapi/routing.py", line 165, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool return await anyio.to_thread.run_sync(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/gradio/routes.py", line 271, in api_info return gradio.blocks.get_api_info(config, serialize) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/oleggolokoz/stable-diffusion-webui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 504, in get_api_info serializer = serializing.COMPONENT_MAPPINGtype ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ KeyError: 'dataset'

you may need to upgrade the version of your gradio to 3.37.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants