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)
- URL link refused to connect HOT 1
- ValueError: Language diff not supported. HOT 4
- [Custom Components] Support `BlockContext` to include `Component` features HOT 3
- Update the choice of Radio component will lead interactive=False by default. HOT 2
- Upgrade Gradio but have problem on upgrade the old codes utilizing the old version of Gradio HOT 1
- Add gr.Modal component to core Gradio HOT 3
- URL link refused to connect after upgrade Gradio HOT 4
- import gradio gives error HOT 3
- Audio component: gradio RuntimeError: Response content shorter than Content-Length HOT 3
- Support more advanced filtering in FileExplorer component HOT 3
- Loosing connection and can't re-establish it HOT 1
- Ability to set HTTP headers? Clickjacking protection HOT 1
- Gap between dynamic components disappears after Hot Reload
- An error occurs when passing `datetime.datetime` to `gr.DateTime`
- Some packages are shown as not installed when running `gradio environment` HOT 2
- Provide way to configure HTML Header Meta tags
- More Documentation around gr.State() and session management related to gr.Blocks(), gr.Interface(), etc. HOT 3
- Enable file uploads from both local and/ or Google Drive in Gradio?
- Gradio progress bar fails to display when using custom root_path
- gradio cc dev not working for Model3D template
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.