mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
11 lines
286 B
Python
11 lines
286 B
Python
|
from abc import ABC, abstractmethod
|
||
|
|
||
|
|
||
|
class UrlServiceBase(ABC):
|
||
|
"""Responsible for building URLs for resources."""
|
||
|
|
||
|
@abstractmethod
|
||
|
def get_image_url(self, image_name: str, thumbnail: bool = False) -> str:
|
||
|
"""Gets the URL for an image or thumbnail."""
|
||
|
pass
|