class FactoryCreator {

    static final HuggingFaceClientFactory FACTORY = factory();

    private static HuggingFaceClientFactory factory() {<FILL_FUNCTION_BODY>}

    static class DefaultHuggingFaceClientFactory implements HuggingFaceClientFactory {

        @Override
        public HuggingFaceClient create(Input input) {
            return new DefaultHuggingFaceClient(input.apiKey(), input.modelId(), input.timeout());
        }
    }
}

        for (HuggingFaceClientFactory factory : loadFactories(HuggingFaceClientFactory.class)) {
            return factory;
        }
        return new DefaultHuggingFaceClientFactory();
    
<no_super_class>