Skip to content

Commit

Permalink
Merge pull request #168 from seruva19/dev
Browse files Browse the repository at this point in the history
edit README, add small UI changes, update colab notebook
  • Loading branch information
seruva19 authored Jan 4, 2024
2 parents 203142e + 57af241 commit 5eec2da
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Web-GUI for Kandinsky text-to-image diffusion models ([Kandinsky2](https://githu
✔ Low-VRAM options <br>
✔ Support for extensions <br>
✔ ext. [Image browser](https://github.com/seruva19/kubin-extensions) <br>
✔ ext. [Image editor](https://github.com/seruva19/kubin-extensions) <br>
✔ ext. [Fine-tuning](https://github.com/seruva19/kubin-extensions) <br>
✔ ext. [LoRA training and inference](https://github.com/seruva19/kubin-extensions) <br>
✔ ext. [Style library](https://github.com/seruva19/kubin-extensions) <br>
Expand Down
4 changes: 4 additions & 0 deletions client/css.0.base.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ body.unselectable * {
display: none;
}

.kd-extensions-list .prose hr {
margin-bottom: 0px !important;
}

.kd-extension-settings-container {
margin-top: 15px;
}
Expand Down
4 changes: 4 additions & 0 deletions client/dist/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ body.unselectable * {
display: none;
}

.kd-extensions-list .prose hr {
margin-bottom: 0px !important;
}

.kd-extension-settings-container {
margin-top: 15px;
}
Expand Down
2 changes: 0 additions & 2 deletions client/dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@
(global => {
kubin.UI.customEventListeners = () => {
window.document.addEventListener('click', e => {
console.log(e.target)
console.log(e.target.nextElementSibling)
if (e.target.classList.contains('options-select')) {
Array.from(document.querySelectorAll('.options-select')).forEach(option => {
option.classList.remove('selected')
Expand Down
2 changes: 0 additions & 2 deletions client/js.1.ui.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(global => {
kubin.UI.customEventListeners = () => {
window.document.addEventListener('click', e => {
console.log(e.target)
console.log(e.target.nextElementSibling)
if (e.target.classList.contains('options-select')) {
Array.from(document.querySelectorAll('.options-select')).forEach(option => {
option.classList.remove('selected')
Expand Down
2 changes: 2 additions & 0 deletions notebooks/kubin-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"mesh_gen = False #@param {type:\"boolean\"}\n",
"multi_view = False #@param {type:\"boolean\"}\n",
"animation = True #@param {type:\"boolean\"}\n",
"image_editor = False #@param {type:\"boolean\"}\n",
"image_to_video = False #@param {type:\"boolean\"}\n",
"prompt_styles = True #@param {type:\"boolean\"}\n",
"segmentation = False #@param {type:\"boolean\"}\n",
Expand All @@ -103,6 +104,7 @@
"if not mesh_gen: disabled_extensions.append('kd-mesh-gen')\n",
"if not multi_view: disabled_extensions.append('kd-multi-view')\n",
"if not animation: disabled_extensions.append('kd-animation')\n",
"if not image_editor: disabled_extensions.append('kd-image-editor')\n",
"if not image_to_video: disabled_extensions.append('kd-image-to-video')\n",
"if not prompt_styles: disabled_extensions.append('kd-prompt-styles')\n",
"if not segmentation: disabled_extensions.append('kd-segmentation')\n",
Expand Down
1 change: 1 addition & 0 deletions src/ui_blocks/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,5 @@ def extensions_ui(kubin: Kubin):
_js=f'_ => kubin.notify.success("All extensions will be reinstalled on next launch")',
)

extensions_block.elem_classes = ["kd-extensions-list"]
return extensions_block

0 comments on commit 5eec2da

Please sign in to comment.