Skip to content

Commit

Permalink
feat(gui/panels.py): add precision parameter to inference steps slide…
Browse files Browse the repository at this point in the history
…r for better control

refactor(gui/usermodels.py): import Settings from util for improved configuration management

chore(main.py): change logger level from DEBUG to INFO to reduce log verbosity
  • Loading branch information
rtuszik committed Oct 9, 2024
1 parent 4332b48 commit 2aad579
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gui/panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def setup_left_panel(self):
),
min=1,
max=50,
precision=0,
)
.classes("w-1/2 md:w-full")
.tooltip("Number of Inference Steps")
Expand Down
1 change: 1 addition & 0 deletions src/gui/usermodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from loguru import logger
import asyncio
import json
from util import Settings


class UserModels:
Expand Down
3 changes: 1 addition & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
logger.add(
"app.log",
format="{time} {level} {module}:{line} {message}",
level="DEBUG",
level="INFO",
rotation="500 MB",
compression="zip",
)
Expand All @@ -20,7 +20,6 @@
logger.info("Initializing ImageGenerator")
generator = util.Replicate_API()


api_key = util.Settings.get_api_key()
if api_key:
generator.set_api_key(api_key)
Expand Down

0 comments on commit 2aad579

Please sign in to comment.