Streamlit App Engine Google Flex slow/not responding

I have developed https://datawhiz.ai application using streamlit. I have deployed it on Google App Engine Flex, I am running two instances and splitting traffic with session_effinity but my streamlit application is not performing after first few requests or first few users, it’s keep showing “running”, is this any configuration issue? Is there websocket connection issue? How to troubleshoot?

In the google chrome browser F12 it’s keep waiting for the response. I am also using caching properly and here is my app.yaml configuration

runtime: python
env: flex

entrypoint: streamlit run Home.py --server.port $PORT

runtime_config:
operating_system: “ubuntu22”
runtime_version: “3.11”

api_version: ‘1’
threadsafe: true
automatic_scaling:
min_num_instances: 1
max_num_instances: 2
cpu_utilization:
target_utilization: 1.0
liveness_check:
initial_delay_sec: ‘30’
check_interval_sec: ‘5’
timeout_sec: ‘5’
failure_threshold: 2
success_threshold: 1
readiness_check:
check_interval_sec: ‘3’
timeout_sec: ‘3’
failure_threshold: 2
success_threshold: 1
app_start_timeout_sec: ‘100’

network:
session_affinity: true