Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def format_response(text):
|
|
86 |
.replace("[Conclude]", '\n<strong class="special-tag">[Conclude]</strong>\n') \
|
87 |
.replace("[Reason]", '\n<strong class="special-tag">[Reason]</strong>\n') \
|
88 |
.replace("[Verify]", '\n<strong class="special-tag">[Verify]</strong>\n')
|
89 |
-
@spaces.GPU(
|
90 |
def generate_response(message, chat_history, system_prompt, temperature, max_tokens):
|
91 |
# Create conversation history for model
|
92 |
conversation = [{"role": "system", "content": system_prompt}]
|
|
|
86 |
.replace("[Conclude]", '\n<strong class="special-tag">[Conclude]</strong>\n') \
|
87 |
.replace("[Reason]", '\n<strong class="special-tag">[Reason]</strong>\n') \
|
88 |
.replace("[Verify]", '\n<strong class="special-tag">[Verify]</strong>\n')
|
89 |
+
@spaces.GPU()
|
90 |
def generate_response(message, chat_history, system_prompt, temperature, max_tokens):
|
91 |
# Create conversation history for model
|
92 |
conversation = [{"role": "system", "content": system_prompt}]
|