Update app.py
Browse files
app.py
CHANGED
@@ -49,12 +49,18 @@ You can also use 🧑🏻🚀YI-200K🚀 by cloning this space. 🧬🔬🔍
|
|
49 |
Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community on 👻Discord: [Discord](https://discord.gg/GWpVpekp) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Polytonic](https://github.com/tonic-ai) & contribute to 🌟 [PolyGPT](https://github.com/tonic-ai/polygpt-alpha)
|
50 |
"""
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
MAX_MAX_NEW_TOKENS = 200000
|
53 |
DEFAULT_MAX_NEW_TOKENS = 100000
|
54 |
MAX_INPUT_TOKEN_LENGTH = 100000
|
55 |
|
56 |
-
DESCRIPTION = "# 👋🏻Welcome to 🙋🏻♂️Tonic's🧑🏻🚀Yi-200K🚀"
|
57 |
-
|
58 |
def clear_and_save_textbox(message): return '', message
|
59 |
|
60 |
def display_input(message, history=[]):
|
|
|
49 |
Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community on 👻Discord: [Discord](https://discord.gg/GWpVpekp) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Polytonic](https://github.com/tonic-ai) & contribute to 🌟 [PolyGPT](https://github.com/tonic-ai/polygpt-alpha)
|
50 |
"""
|
51 |
|
52 |
+
DEFAULT_SYSTEM_PROMPT = """
|
53 |
+
You are Yi. You are an AI assistant, you are moderately-polite and give only true information.
|
54 |
+
You carefully provide accurate, factual, thoughtful, nuanced answers, and are brilliant at reasoning.
|
55 |
+
If you think there might not be a correct answer, you say so. Since you are autoregressive,
|
56 |
+
each token you produce is another opportunity to use computation, therefore you always spend a few sentences explaining background context,
|
57 |
+
assumptions, and step-by-step thinking BEFORE you try to answer a question.
|
58 |
+
"""
|
59 |
+
|
60 |
MAX_MAX_NEW_TOKENS = 200000
|
61 |
DEFAULT_MAX_NEW_TOKENS = 100000
|
62 |
MAX_INPUT_TOKEN_LENGTH = 100000
|
63 |
|
|
|
|
|
64 |
def clear_and_save_textbox(message): return '', message
|
65 |
|
66 |
def display_input(message, history=[]):
|