Always reruns, no new user input

Hi guys,

I’ve deployed my app at Guideline gopher - Your AI search tool for Fannie Mae, Freddie Mac, VA, FHA, conventional, USDA guidelines or guideline-gopher.streamlit.app. It’s a PDF searcher that uses chatGPT AI to search mortgage guidelines. It uses AWS to store PDF’s and an embedded iframe to display them.

Problem I’m having is that if you just let the app sit idle for like 20-30min, it re-runs. No new user input or anything. This is a problem because each time it’s pinging chatGPT for new data and costing me money. Any suggestions on how to solve this?

There should be no need to ping chatGPT for new data without the user explicitly asking for it. Change your code so that it doesn’t do that.

That’s the whole point, the entire program re-runs on it’s own without any new input of any kind and in doing so, it re-pings chatGPT with the same question that’s sitting in the text input box. Super annoying and I have no clue why it’s happening.
I’m setting up conditional statements as a band-aid, but I feel like there’s some other root cause issue at work here.

There are wto separate issues here:

  1. the entire program re-runs on it’s own without any new input of any kind

  2. and in doing so, it re-pings chatGPT with the same question that’s sitting in the text input box

I don’t know why the first one is happening and you didn’t provide enough information for me to even start trying to chase it. All I can say is that I have never seen it. Let me know if you manage to prepare a reproducible example that I can try by myself.

The second one looks like a design flaw to me and I think you should fix it in any case.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.