Comments (7)
hi, there. how about more than two ouputs in gradio. I found it's faild in the ouputs which contains text and image.
from gradio.
Hi, I also met the problem when output image did not look the original size. Is there anyway to fix it?
from gradio.
@MultiPath do you mean resizing the output image component, you can try doing that with css in the interface https://gradio.app/docs#interface
see this demo as a example
https://huggingface.co/spaces/nielsr/LayoutLMv2-FUNSD/blob/main/app.py#L83
from gradio.
Thanks @hpeiyan, that is probably why it was failing to make any changes for me as well. I had only tried with a dual image+text output so I had not caught that it was broken for such outputs.
from gradio.
@hpeiyan @MichaelSNelson can you please share an example with code of what's not working for you? We need more information to be able to address this
from gradio.
Thanks for the response, I am only just starting to play with DL and all the rest, so it is entirely possible I misunderstood something in the link above.
https://huggingface.co/spaces/imagescientist/zebrafishtest1/tree/main
My app.py is included there - are you able to access it to see the code?
Changing the figsize in matplotlib also did not seem to impact the final image size. It may be that the better option is to create three separate images and attempt to place them in the right order in the interface?
from gradio.
If you have 3 output images, perhaps you could try using the Gallery
component, which accepts a list of images? https://gradio.app/docs/#gallery
from gradio.
Related Issues (20)
- Add diffusers pipeline type: image-to-image HOT 1
- Browsers can cache the results of the `/custom_component` route, leading to confusion when new versions are published HOT 3
- Use mount_gradio_app(auth_dependency) can not submit HOT 2
- dataframe can not refresh from 4.17.0 HOT 1
- Unable to use the placeholder parameter with ChatInterface HOT 6
- ChatInterface的additional_inputs参数怎么做才不被折叠? HOT 3
- Audio streaming can't play before all data sent
- gradio problem with google colab HOT 2
- Not able to call api function in custom chatbot HOT 8
- Gradio microphone input forwards empty values on Spaces
- Audio Streaming: large latency before first chunk is played HOT 1
- Could not create share link HOT 9
- Cancelling a python client job won't stop the job from running on the server
- `TimeoutError: The read operation timed out` in `gradio_client` HOT 6
- Reload mode no longer able to update Interface title/description HOT 2
- Hot reloads break when loading external CSS HOT 5
- Monitor the init loading time in CI
- Variable Name HOT 2
- Gradio website loading error HOT 5
- The module gr.Sketchpad,ImageMask cannot obtain the binary image normally. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradio.