It seems like only stderr is logged in my space – I’m using gradio running in a Docker container. Is this expected? I can’t find it documented anywhere.
1 Like
I think stdout is also output to the log in the Gradio space. (It will be displayed if you print it.)
I wonder if this is a specification for the Docker space only, or if it depends on the Gradio startup options…
I’ve never heard of any documentation on this.
You might want to try adding ENV PYTHONUNBUFFERED=1
to your Dockerfile.
2 Likes
That’s a great idea. I wondered if it is related to buffering. I’ll try this out later today.
1 Like
It worked! I also made a PR with this change to sayakpaul/demo-docker-gradio · Disable python buffering
1 Like