Coder Social home page Coder Social logo

(Studio) Llama2 UI tweaks about shark HOT 2 OPEN

monorimet avatar monorimet commented on June 16, 2024
(Studio) Llama2 UI tweaks

from shark.

Comments (2)

one-lithe-rune avatar one-lithe-rune commented on June 16, 2024

For anyone who picks this up, if I don't get to it at some point:

  1. show_progress="none" is probably what want you'll want to set on whichever gradio events are triggering this. I'm guessing that would be whatever is attached to the submit button, and maybe enter on the box where you type stuff in. See the event for the generate buttons on the SD tabs.

  2. The way this is done for the output gallery is to have a CSS class that sets min-height: in viewport height (vh) units, on the appropriate control. But you'll have two problems you'll need to solve if you take that approach.

    First, finding the appropriate CSS selectors to get to whatever the appropriate control is. Given the way gradio works, this probably isn't as simple as just setting an elem_class=<your_classname> and defining <your classname> to add the height directly at that node. The output gallery has to drill down from there to some descendant node.

    Second, unlike the output gallery the chatbot has stuff above and below it, which can change size vertically as things wrap and and unwrap based on the browsers horizontal sizing, this means that a fixed min-height may not work, because the percentage of the viewport height you want may not be stable.

  3. I don't know how the chatbot works currently, but I assume the user expectation would be that it would work like ChatGPT with a selectable list of past conversions, and the ability to start new ones. That's probably out of scope for this though.

from shark.

monorimet avatar monorimet commented on June 16, 2024

Thanks for offering some ideas. I've merged 1b11c82 which accomplishes the first two points. As for the third, a docu-chat/"save conversation" option would probably be the best -- if we have an option for one-shot inference it would be good to support the other end of the spectrum, where we have lots of context we want the model to use.

from shark.

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.