Spaces:
Build error
Build error
Download providers/base.py from AliInamdar/Virtual-Room-Generator: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/AliInamdar/Virtual-Room-Generator/resolve/main/providers/base.py
- Command line
-
hf download hf://spaces/AliInamdar/Virtual-Room-Generator/providers/base.py
-
curl -L -o base.py https://huggingface.co/spaces/AliInamdar/Virtual-Room-Generator/resolve/main/providers/base.py
286 Bytes
| from abc import ABC, abstractmethod | |
| from typing import List | |
| class ImageProvider(ABC): | |
| def generate_image(self, prompt: str, size: str = "1024x1024", n: int = 1) -> List[str]: | |
| """Return a list of base64-encoded PNGs.""" | |
| raise NotImplementedError | |