Imageomics / Andromeda

A website that enables users to explore high-dimensional image data
http://andromeda.imageomics.org/
MIT License
2 stars 1 forks source link

Fix download CSV when running on HuggingFace #79

Closed johnbradley closed 11 months ago

johnbradley commented 11 months ago

Fix Mixed Content error (mixing https and http) when a user tried to download a CSV from the HuggingFace Space. Use SPACE_HOST environment variable to build a https URL. The underlying problem was Flask request.base_url returned a http URL when running within HuggingFace.

Fixes #78

thompsonmj commented 11 months ago

Should we add the SPACE_HOST variable to example.env?

johnbradley commented 11 months ago

Should we add the SPACE_HOST variable to example.env?

Since that's a HuggingFace provided and defined environment variable I don't think so.