Streamlit App on HuggingFace Space using Leafmap and Localtileserver #213
Unanswered
jordancaraballo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand we have had some of these conversations before, but I have been trying during the weekend to get a leafmap-based streamlit app running on HuggingFace spaces. giswqs was kind enough to fix some of the system checks from leafmap during the weekend to allow the app to run on HugginFace spaces.
Unfortunately, while the app runs, the rasters shown on the map remain transparent. I have seen this before with port exposure/blocking problems, which I have fixed in the past with jupyter proxy, and client_port variables at the TileClient level. Unfortunately, I have not been able to fix it this time. Running a bit out of ideas here on how to make it work.
I understand this is not at all possible on Streamlit cloud because of the way they manage their environment. I have seen the discussions so far, and @banesullivan attempts to fix it in the past without luck. That being said, HuggingFace exposes a couple of more ports, with 80 and 8080 available as well. The app works excellently locally, the challenge is while deploying it to any of these providers.
Functionality of the App:
The core elements of the app are below, with the HuggingFace Space here https://huggingface.co/spaces/loboda-umd/fire-hnl-streamlit (you can also see the code from there).
These have been my unsuccessful attempts:
I know this is a long post, but hopefully it has enough information to document some of my attempts and possibilities. I am willing to document this deployment later on leafmap or localtileserver if we end up finding specific details that might need to be documented. I am pretty sure other folks will try to deploy these types of apps in the future.
Beta Was this translation helpful? Give feedback.
All reactions