Spaces:
Running
Running
Getting error
#1
by
ysharma
HF staff
- opened
Hi, great work with the app! It would be nice to upgrade the gradio sdk to our latest stable release: 5.0.2
. Read our release notes to understand the benefits of gradio 5: https://huggingface.co/blog/gradio-5
Also, I am getting error while trying to generate an image:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1935, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
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 2441, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "/home/user/app/app.py", line 104, in start_model_swap
raise gr.Error(f"Failure: {r.text}")
gradio.exceptions.Error: 'Failure: <html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx/1.18.0 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n'
adding examples to the app could improve the UX as well. Docs for this: https://www.gradio.app/docs/gradio/examples
I agree with you. We will add samples soon, migrate the demo to the latest Gradio version, and provide support for large files.