Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ MODEL_ID ="Daemontatox/Cogito-R1"
|
|
118 |
# """
|
119 |
|
120 |
|
121 |
-
DEFAULT_SYSTEM_PROMPT ="You are a highly capable reasoning assistant , use
|
122 |
|
123 |
CSS = """
|
124 |
.gr-chatbot { min-height: 500px; border-radius: 15px; }
|
@@ -156,7 +156,7 @@ def format_response(text):
|
|
156 |
.replace("[Plan]", '\n<strong class="special-tag">[Plan]</strong>\n') \
|
157 |
.replace("[Conclude]", '\n<strong class="special-tag">[Conclude]</strong>\n') \
|
158 |
.replace("[Reason]", '\n<strong class="special-tag">[Reason]</strong>\n') \
|
159 |
-
.replace("[
|
160 |
@spaces.GPU(duration=360)
|
161 |
def generate_response(message, chat_history, system_prompt, temperature, max_tokens):
|
162 |
# Create conversation history for model
|
|
|
118 |
# """
|
119 |
|
120 |
|
121 |
+
DEFAULT_SYSTEM_PROMPT ="You are a highly capable reasoning assistant , use [Reason] and [/Reason] to show your thinking steps , use [Answer] and [/Answer] to show your final answer , you should think step by step and reason through problems. "
|
122 |
|
123 |
CSS = """
|
124 |
.gr-chatbot { min-height: 500px; border-radius: 15px; }
|
|
|
156 |
.replace("[Plan]", '\n<strong class="special-tag">[Plan]</strong>\n') \
|
157 |
.replace("[Conclude]", '\n<strong class="special-tag">[Conclude]</strong>\n') \
|
158 |
.replace("[Reason]", '\n<strong class="special-tag">[Reason]</strong>\n') \
|
159 |
+
.replace("[Answer]", '\n<strong class="special-tag">[Answer]</strong>\n')
|
160 |
@spaces.GPU(duration=360)
|
161 |
def generate_response(message, chat_history, system_prompt, temperature, max_tokens):
|
162 |
# Create conversation history for model
|