Error running locally on Windows. "AttributeError: 'State' object has no attribute 'value'"

#3
by syddharth - opened
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
YOOOOOOOOOOOOOOOOO  0.25 50
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50/50 [00:03<00:00, 14.37steps/s]
Traceback (most recent call last):
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\gradio\queueing.py", line 407, in call_prediction
    output = await route_utils.call_process_api(
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\gradio\route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\gradio\blocks.py", line 1550, in process_api
    result = await self.call_function(
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\gradio\blocks.py", line 1185, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "C:\AI\SD\ledtisplusplus\venv\lib\site-packages\gradio\utils.py", line 661, in wrapper
    response = f(*args, **kwargs)
  File "C:\AI\SD\ledtisplusplus\app.py", line 196, in edit
    latnets = wts.value[-1].expand(1, -1, -1, -1)
AttributeError: 'State' object has no attribute 'value'

Can someone throw some light on this?

Editing Images org

Currently the demo is running on gradio==3.43.0 if your local gradio version is different it may explain why you are getting this issue. We'll soon update to the latest gradio in the demo

Sign up or log in to comment