mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
13 lines
379 B
Python
13 lines
379 B
Python
from invokeai.app.services.names.names_base import NameServiceBase
|
|
from invokeai.app.util.misc import uuid_string
|
|
|
|
|
|
class SimpleNameService(NameServiceBase):
|
|
"""Creates image names from UUIDs."""
|
|
|
|
# TODO: Add customizable naming schemes
|
|
def create_image_name(self) -> str:
|
|
uuid_str = uuid_string()
|
|
filename = f"{uuid_str}.png"
|
|
return filename
|