Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 09aaa70
Author: Robin Tuszik <[email protected]>
Date:   Fri Aug 30 00:44:57 2024 +0200

    feat(ci): add release trigger to Docker workflow

    - Change trigger from `push` to `release` with `released` event type to only run on published releases

commit 111e607
Merge: 6d90f16 9f83a66
Author: Robin Tuszik <[email protected]>
Date:   Fri Aug 30 00:34:21 2024 +0200

    Merge branch 'main' of https://github.com/rtuszik/replicate-flux-lora

commit 6d90f16
Author: Robin Tuszik <[email protected]>
Date:   Wed Aug 28 21:19:34 2024 +0200

    refactor(gui): improve layout and responsiveness

    - Restructure main UI layout using grid system
    - Adjust card sizes and add scrolling for better space utilization
    - Increase spinner size for better visibility

commit 215934b
Merge: d201ad7 548cca1
Author: Robin Tuszik <[email protected]>
Date:   Mon Aug 26 19:50:35 2024 +0200

    Merge branch 'dev' of https://github.com/rtuszik/replicate-flux-lora into dev

commit 548cca1
Author: Robin Tuszik <[email protected]>
Date:   Mon Aug 26 19:10:24 2024 +0200

    ci: remove Docker layer caching in GitHub Actions

    Remove the cache-from and cache-to options from the docker/build-push-action
    step in the Docker build and push workflow. This change may impact build
    times but simplifies the workflow configuration.
  • Loading branch information
rtuszik committed Aug 29, 2024
1 parent 9f83a66 commit 440f38e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: Docker Build and Push

on:
workflow_dispatch:
push:
branches:
- main
paths:
- src/**
- Dockerfile
release:
types:
- released

env:
REGISTRY: ghcr.io
Expand Down
21 changes: 12 additions & 9 deletions src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,19 @@ def __getattr__(self, name):
def setup_ui(self):
ui.dark_mode().enable()

with ui.column().classes("w-full max-w-full mx-auto space-y-8"):
with ui.card().classes("w-full"):
with ui.grid(columns=2).classes("w-screen h-full gap-4 px-8"):
with ui.card().classes("col-span-2"):
ui.label("Flux LoRA API").classes("text-2xl font-bold mb-4")
with ui.row():
with ui.column(wrap=False):
self.setup_left_panel()
with ui.column(wrap=False):
self.setup_right_panel()
ui.separator()

with ui.card().classes("h-[70vh] overflow-auto"):
self.setup_left_panel()

with ui.card().classes("h-[70vh] overflow-auto"):
self.setup_right_panel()

with ui.card().classes("col-span-2"):
self.setup_bottom_panel()

logger.info("UI setup completed")

def setup_left_panel(self):
Expand Down Expand Up @@ -338,7 +341,7 @@ def update_folder_path(self, e):
self.folder_input.value = self.folder_path

def setup_right_panel(self):
self.spinner = ui.spinner(type="infinity", size="xl")
self.spinner = ui.spinner(type="infinity", size="150px")
self.spinner.visible = False

self.gallery_container = ui.column().classes("w-full mt-4")
Expand Down

0 comments on commit 440f38e

Please sign in to comment.