Skip to content

Commit

Permalink
fix the displaying of any non-string values of variables included in …
Browse files Browse the repository at this point in the history
…the prompt

Previously, non-string (e.g. numerical) values were breaking the variable values preview feature.
  • Loading branch information
samsucik committed Sep 30, 2024
1 parent 7fb0269 commit 1da2bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompterator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def set_up_prompt_attrs_area(st_container):
# create text of used prompt's variables and their values
vars_values = ""
for var in vars:
vars_values += var + ":\n " + st.session_state.row.get(var, "none") + "\n"
vars_values += var + ":\n " + str(st.session_state.row.get(var, "none")) + "\n"

st_container.text_area(
label=f"Attributes used in a prompt",
Expand Down

0 comments on commit 1da2bff

Please sign in to comment.