carolinefrascasnowflake commited on
Commit
99296d0
1 Parent(s): 2a7f11c

Update token limit to 3072 (#3)

Browse files

- Update token limit to 3072 (be9fa23ed60c327716d7f52f740b5dcdbcad4a75)

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ def generate_arctic_response():
75
  prompt.append("")
76
  prompt_str = "\n".join(prompt)
77
 
78
- if get_num_tokens(prompt_str) >= 4096:
79
- st.error("Conversation length too long. Please keep it under 4096 tokens.")
80
  st.button('Clear chat history', on_click=clear_chat_history, key="clear_chat_history")
81
  st.stop()
82
 
 
75
  prompt.append("")
76
  prompt_str = "\n".join(prompt)
77
 
78
+ if get_num_tokens(prompt_str) >= 3072:
79
+ st.error("Conversation length too long. Please keep it under 3072 tokens.")
80
  st.button('Clear chat history', on_click=clear_chat_history, key="clear_chat_history")
81
  st.stop()
82