SkyAR: Castle in the Sky

Hi All! I built my first public Streamlit app here:

https://share.streamlit.io/thoppe/streamlit-skyar

I adapted a neat DL paper I saw recently that allows you to compose a sky with a landscape picture. The full code uses video, but for this I just wanted to experiment with an image.

Let me know what you all think!

Side note: I’ve been having some problems with resource limits, so I’m experimenting with TTL and max_entries in @st.cache, anyone else have this problem?

5 Likes

This is super cool!

Side note: I’ve been having some problems with resource limits, so I’m experimenting with TTL and max_entries in @st.cache , anyone else have this problem?

Yup! You should set up a TTL or you’ll invariably hit resource limits. This is something we’re actively thinking about, but for now that’s the solution.

If that doesn’t work for you, please let us know

As a new user, and especially for streamlit sharing, I had no idea this would kill the app. As soon as my post got popular it went down, which is counterproductive to both of us!

Some suggestions:

  1. Default TTL and max_entry limits that would keep most image apps in bounds
  2. Warnings when deploying a model with an unbounded cache
  3. Notes to the user – the “APP IS CONSUMING TOO MANY RESOURCES” isn’t helpful in solving the problem, maybe a note suggestion caching might be an issue would go a long way.
  4. Logs for when an app goes down. This should be pretty easy since you already have our email address and you can tell if an app is giving a resource error. Relying on twitter isn’t the best option.
1 Like

:100: Agreed on all counts! Those are exactly the kinds of things we’re working on.

Just sent out a PR to improve this:

Notes to the user – the “APP IS CONSUMING TOO MANY RESOURCES” isn’t helpful in solving the problem, maybe a note suggestion caching might be an issue would go a long way.

1 Like

Love it!

1 Like