Comments (2)
For anyone who picks this up, if I don't get to it at some point:
-
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. -
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.
-
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.
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)
- Warnings after today's update
- Crash/error on 'stock' test gen HOT 2
- fail to convert qwen llama model to MLIR and vmfb.
- Need to restart in between generations of higher resolution images HOT 1
- RESOURCE_EXHAUSTED when trying to use hires fix
- SDXL Error
- Sharkify Model UnetModel.forward() Arguments Error
- Input image masks on Image2Image does not seem to do anything HOT 1
- SHARK won't start or run without internet
- Error while installing rx570 don't know if it is because of the card or software issue please fix it
- LoRA models not showing up in dropdown
- System interrupts gets very high CPU followed by complete computer shutdown HOT 3
- Document for the compilation flow ?
- Enable llama2 benchmarking with Turbine HOT 1
- FP8 Support HOT 10
- (Shark-1.0) setup_venv.ps1 specifies a torch-mlir version that has dropped off the end of package index
- RuntimeError: duplicate registrations HOT 3
- Gradio Button has no attr "label"
- Gradio JSON has no option interactive
- problem with Torch-mlir on Ubuntu, latest en previous Shark version
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 shark.