Skip to content

Commit

Permalink
Only show everything dataframe if in Ninja mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSalita committed Jan 26, 2024
1 parent 15f824d commit 49cc53e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,10 @@ def chat_initialize(player_number, session_id): # todo: rename to session_id?
#content = slash_about()
#streamlit_chat.message(f"Morty: {content}", logo=st.session_state.assistant_logo)

streamlit_chat.message(
f"Morty: Here's a dataframe of game results. There's {len(df)} rows and {len(df.columns)} columns.", logo=st.session_state.assistant_logo)
streamlitlib.ShowDataFrameTable(df, key='clear_conversation_game_data_df')
if st.session_state.show_sql_query:
streamlit_chat.message(
f"Morty: Here's a dataframe of game results. There's {len(df)} rows and {len(df.columns)} columns.", logo=st.session_state.assistant_logo)
streamlitlib.ShowDataFrameTable(df, key='clear_conversation_game_data_df')

return True

Expand Down

0 comments on commit 49cc53e

Please sign in to comment.