Spaces:
Runtime error
Runtime error
Update token limit to 3072
#3
by
carolinefrascasnowflake
- opened
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) >=
|
79 |
-
st.error("Conversation length too long. Please keep it under
|
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 |
|