I’m developing a Python Flask application to find combinations of numbers from two datasets that sum up to a target value. The app works fine with smaller datasets but freezes when processing larger datasets. Here GitHub repository of my code: Gighub
I have to admit that I have no prior knowledge of coding and rely almost entirely on ChatGPT. But it can’t solve this issue
This is my online web app this I host on ‘pythonanywhere.com’
find_combi
you can see that I have to put a warining ‘[RECOMMEND Maximum: 5 values]’ on. if input exceed this it will likely freeze, and user cannot just reflash the page. I have to go to reload on pythonanywhere.com myself.
input
result
The application freezes completely with larger datasets.
I’m okay with longer load times as long as the application doesn’t freeze completely
The goal is to make it able to accept around 100 input and not freezes
koravik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.