From 7e4005acd327fa28963e563a5459e0c0df9b411e Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:53:15 +0530 Subject: [PATCH] fix: render new price if request changed --- daras_ai_v2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py index 1fa8eecd0..bb01a52a1 100644 --- a/daras_ai_v2/base.py +++ b/daras_ai_v2/base.py @@ -1333,7 +1333,7 @@ def render_submit_button(self, key="--submit-1"): def render_run_cost(self): url = self.get_credits_click_url() - if self.current_sr.price: + if self.current_sr.price and not self._has_request_changed(): run_cost = self.current_sr.price else: run_cost = self.get_price_roundoff(gui.session_state)