Giter Club home page Giter Club logo

Comments (7)

hpeiyan avatar hpeiyan commented on May 12, 2024 1

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.

MultiPath avatar MultiPath commented on May 12, 2024

Hi, I also met the problem when output image did not look the original size. Is there anyway to fix it?

from gradio.

AK391 avatar AK391 commented on May 12, 2024

@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.

MichaelSNelson avatar MichaelSNelson commented on May 12, 2024

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.

abidlabs avatar abidlabs commented on May 12, 2024

@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.

MichaelSNelson avatar MichaelSNelson commented on May 12, 2024

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.

abidlabs avatar abidlabs commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.