mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -21,7 +21,7 @@ func (c *Config) VisionYaml() string {
|
||||
|
||||
// VisionApi checks whether the Computer Vision API endpoints should be enabled.
|
||||
func (c *Config) VisionApi() bool {
|
||||
return c.options.VisionApi
|
||||
return c.options.VisionApi && !c.options.Demo
|
||||
}
|
||||
|
||||
// VisionUri returns the remote computer vision service URI, e.g. https://example.com/api/v1/vision.
|
||||
|
||||
Reference in New Issue
Block a user