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

[BUG] when uploading image for inpainting #10742

Closed
1 task done
Himasnhu-AT opened this issue Mar 6, 2025 · 2 comments
Closed
1 task done

[BUG] when uploading image for inpainting #10742

Himasnhu-AT opened this issue Mar 6, 2025 · 2 comments
Labels
bug Something isn't working needs repro Awaiting full reproduction

Comments

@Himasnhu-AT
Copy link

Describe the bug

When i click on run, getting error:

the size of file is less then 1 kb

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

clone repo:

https://huggingface.co/spaces/Himanshu806/fluxInpaint-testing 

and setup .env

then run app.py file

It is working in docker image. but when i run it using python venv, getting error

Screenshot

Image

Logs

logging set to debug:

* Running on public URL: https://a5814071f4d9704665.gradio.live

This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)
2025-03-06 11:13:40 - DEBUG - Starting new HTTPS connection (1): huggingface.co:443
2025-03-06 11:13:40 - DEBUG - https://huggingface.co:443 "HEAD /api/telemetry/gradio/launched HTTP/1.1" 200 0
2025-03-06 11:14:01 - DEBUG - Calling on_part_begin with no data
2025-03-06 11:14:01 - DEBUG - Calling on_header_field with data[42:61]
2025-03-06 11:14:01 - DEBUG - Calling on_header_value with data[63:89]
2025-03-06 11:14:01 - DEBUG - Calling on_header_end with no data
2025-03-06 11:14:01 - DEBUG - Calling on_headers_finished with no data
2025-03-06 11:14:01 - DEBUG - Calling on_part_data with data[93:94]
2025-03-06 11:14:01 - DEBUG - Calling on_part_end with no data
2025-03-06 11:14:01 - DEBUG - Calling on_part_begin with no data
2025-03-06 11:14:01 - DEBUG - Calling on_header_field with data[138:157]
2025-03-06 11:14:01 - DEBUG - Calling on_header_value with data[159:185]
2025-03-06 11:14:01 - DEBUG - Calling on_header_end with no data
2025-03-06 11:14:01 - DEBUG - Calling on_headers_finished with no data
2025-03-06 11:14:01 - DEBUG - Calling on_part_data with data[189:190]
2025-03-06 11:14:01 - DEBUG - Calling on_part_end with no data
2025-03-06 11:14:01 - DEBUG - Calling on_end with no data
2025-03-06 11:14:33 - DEBUG - Calling on_part_begin with no data
2025-03-06 11:14:33 - DEBUG - Calling on_header_field with data[42:61]
2025-03-06 11:14:33 - DEBUG - Calling on_header_value with data[63:110]
2025-03-06 11:14:33 - DEBUG - Calling on_header_end with no data
2025-03-06 11:14:33 - DEBUG - Calling on_header_field with data[112:124]
2025-03-06 11:14:33 - DEBUG - Calling on_header_value with data[126:150]
2025-03-06 11:14:33 - DEBUG - Calling on_header_end with no data
2025-03-06 11:14:33 - DEBUG - Calling on_headers_finished with no data
2025-03-06 11:14:33 - DEBUG - Calling on_part_data with data[154:44530]
2025-03-06 11:14:33 - DEBUG - Calling on_part_end with no data
2025-03-06 11:14:33 - DEBUG - Calling on_end with no data



versions:

(venv) ubuntu@ip-172-31-24-219:~/fluxinpaint$ pip3 show gradio
Name: gradio
Version: 5.14.0
Summary: Python library for easily interacting with trained machine learning models
Home-page: https://github.com/gradio-app/gradio
Author: 
Author-email: Abubakar Abid <gradio-team@huggingface.co>, Ali Abid <gradio-team@huggingface.co>, Ali Abdalla <gradio-team@huggingface.co>, Dawood Khan <gradio-team@huggingface.co>, Ahsen Khaliq <gradio-team@huggingface.co>, Pete Allen <gradio-team@huggingface.co>, Ömer Faruk Özdemir <gradio-team@huggingface.co>, Freddy A Boulton <gradio-team@huggingface.co>, Hannah Blair <gradio-team@huggingface.co>
License: 
Location: /home/ubuntu/fluxinpaint/venv/lib/python3.12/site-packages
Requires: aiofiles, anyio, fastapi, ffmpy, gradio-client, httpx, huggingface-hub, jinja2, markupsafe, numpy, orjson, packaging, pandas, pillow, pydantic, pydub, python-multipart, pyyaml, ruff, safehttpx, semantic-version, starlette, tomlkit, typer, typing-extensions, uvicorn
Required-by: 
(venv) ubuntu@ip-172-31-24-219:~/fluxinpaint$ python3 --version
Python 3.12.6
(venv) ubuntu@ip-172-31-24-219:~/fluxinpaint$

System Info

Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 5.14.0
gradio_client version: 1.7.0

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
anyio: 4.8.0
audioop-lts is not installed.
fastapi: 0.115.11
ffmpy: 0.5.0
gradio-client==1.7.0 is not installed.
httpx: 0.28.1
huggingface-hub: 0.29.2
jinja2: 3.1.6
markupsafe: 2.1.5
numpy: 2.2.3
orjson: 3.10.15
packaging: 24.2
pandas: 2.2.3
pillow: 11.1.0
pydantic: 2.10.6
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.9.9
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.46.0
tomlkit: 0.13.2
typer: 0.15.2
typing-extensions: 4.12.2
urllib3: 2.3.0
uvicorn: 0.34.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2025.2.0
httpx: 0.28.1
huggingface-hub: 0.29.2
packaging: 24.2
typing-extensions: 4.12.2
websockets: 14.2

Severity

Blocking usage of gradio

@Himasnhu-AT Himasnhu-AT added the bug Something isn't working label Mar 6, 2025
@abidlabs
Copy link
Member

abidlabs commented Mar 6, 2025

Hi @Himasnhu-AT can you provide a minimal repro for us to look at? Ideally without an ml model

@abidlabs abidlabs added the needs repro Awaiting full reproduction label Mar 6, 2025
@Himasnhu-AT
Copy link
Author

Himasnhu-AT commented Mar 7, 2025

it worked, I just recreated the instance, and it's working on it, thanks for the response. @abidlabs

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

No branches or pull requests

2 participants