Spaces:
Runtime error
Runtime error
File size: 477 Bytes
6f38e47 |
1 2 3 4 5 6 7 8 9 |
from aiconfig import AIConfigRuntime, ModelParserRegistry
from aiconfig.default_parsers.dalle import DalleImageGenerationParser
# By default, gradio implementation will register all supported HF remote inference models
# For this example, we only want Dall-E, so clear all registered models and then add Dall-E
def register_model_parsers() -> None:
ModelParserRegistry.clear_registry()
ModelParserRegistry.register_model_parser(DalleImageGenerationParser('dall-e-3')) |