diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py index 66209281a..8b32cb213 100644 --- a/daras_ai_v2/base.py +++ b/daras_ai_v2/base.py @@ -1922,23 +1922,23 @@ def render_output_caption(): run_time = st.session_state.get(StateKeys.run_time, 0) if run_time: - caption += f'Generated in {run_time :.2f}s' + caption += f'Generated in {run_time :.1f}s' if seed := st.session_state.get("seed"): caption += f' with seed {seed} ' created_at = st.session_state.get(StateKeys.created_at, datetime.datetime.today()) + ended_at = created_at if created_at: if isinstance(created_at, str): created_at = datetime.datetime.fromisoformat(created_at) - caption += " at " + caption += " on " + time_change = datetime.timedelta(seconds=run_time) + ended_at = created_at + time_change with st.div(className="d-flex"): st.caption(caption, unsafe_allow_html=True) - js_dynamic_date( - created_at, - date_options={"month": "short", "day": "numeric", "year": "numeric"}, - ) + js_dynamic_date(created_at, date_options={"month": "short", "day": "numeric"}) def extract_model_fields( diff --git a/daras_ai_v2/user_date_widgets.py b/daras_ai_v2/user_date_widgets.py index a4c510b56..4cc77a6b0 100644 --- a/daras_ai_v2/user_date_widgets.py +++ b/daras_ai_v2/user_date_widgets.py @@ -23,7 +23,6 @@ def js_dynamic_date( def render_js_dynamic_dates(): default_date_options = { - "weekday": "short", "day": "numeric", "month": "short", }