Skip to content

Commit

Permalink
remove comparison check between state title and workflow title
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Nov 7, 2023
1 parent 9529d0d commit 410afe2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ def endpoint(self) -> str:
def get_page_title(self) -> str | None:
state = st.session_state

page_title = state.get(StateKeys.page_title)
if page_title and page_title != self.title:
return page_title
return truncate_text_words(
return state.get(StateKeys.page_title) or truncate_text_words(
state.get("input_prompt")
or state.get("text_prompt")
or (state.get("animation_prompts") or [{}])[0].get("prompt")
Expand Down

0 comments on commit 410afe2

Please sign in to comment.