How can I force a timeout with gradio on HF spaces?

Hello, I am working on my space ClimateQ&A - a Hugging Face Space by Ekimetrics
And I was wondering if it was possible to force a timeout error for my chatbot.
Because sometimes because of the free tier on my pinecone vector database, if the service is unavailable the user question can run for 10 minutes before timing out and returning an error. I would want to force a timeout error in my callback event after 1 minute ?