Error in new image generation

#12
by ysharma HF staff - opened

Hi, excellent work with migrating to ZeroGPU! Kudos for crafting an excellent and fluid demo @Linaqruf
I am encountering errors while generating an image on the atm. The following traceback may aid in debugging the issue:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 501, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 252, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1673, in process_api
data = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1489, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/usr/local/lib/python3.10/site-packages/gradio/components/gallery.py", line 209, in postprocess
for o in executor.map(_save, value):
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
yield _result_or_cancel(fs.pop())
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
return fut.result(timeout)
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/gradio/components/gallery.py", line 175, in _save
img, caption = img
ValueError: not enough values to unpack (expected 2, got 1)
INFO:httpx:HTTP Request: POST http://device-api.zero/release?

Thank you! I will try to check the problem

Hi, looks like the error has been is fixed, there is a problem when returning the generate value to gr.gallery before.

deleted

Image Generation is apparently not working today. I insert a prompt, it goes for 60 seconds without doing nothing and then appears "Error". What's going on?

Sign up or log in to comment