timbmg commited on
Commit
45b5dd9
·
verified ·
1 Parent(s): c615df9

wrap code lines

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1070,7 +1070,7 @@ def main():
1070
  st.caption(f"Prompt tokens: {prompt_tokens:,}")
1071
  # Make prompt scrollable using container
1072
  with st.container(height=500):
1073
- st.code(results["prompt"], language="text")
1074
  st.divider()
1075
 
1076
  # Raw output section
@@ -1089,7 +1089,7 @@ def main():
1089
  token_counter = TokenCounter(model=tokenizer_name)
1090
  output_tokens = token_counter(content)
1091
  st.caption(f"Output tokens: {output_tokens:,}")
1092
- st.code(content, language="yaml")
1093
  st.divider()
1094
 
1095
  # Step timing information
 
1070
  st.caption(f"Prompt tokens: {prompt_tokens:,}")
1071
  # Make prompt scrollable using container
1072
  with st.container(height=500):
1073
+ st.code(results["prompt"], language="markdown", wrap_lines=True)
1074
  st.divider()
1075
 
1076
  # Raw output section
 
1089
  token_counter = TokenCounter(model=tokenizer_name)
1090
  output_tokens = token_counter(content)
1091
  st.caption(f"Output tokens: {output_tokens:,}")
1092
+ st.code(content, language="yaml", wrap_lines=True)
1093
  st.divider()
1094
 
1095
  # Step timing information