Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def format_response(text):
|
|
62 |
.replace("[Conclude]", '\n<strong class="special-tag">[Conclude]</strong>\n') \
|
63 |
.replace("[Reason]", '\n<strong class="special-tag">[Reason]</strong>\n') \
|
64 |
.replace("[Verify]", '\n<strong class="special-tag">[Verify]</strong>\n')
|
65 |
-
@spaces.GPU
|
66 |
def generate_response(message, chat_history, system_prompt, temperature, max_tokens):
|
67 |
# Create conversation history for model
|
68 |
conversation = [{"role": "system", "content": system_prompt}]
|
|
|
62 |
.replace("[Conclude]", '\n<strong class="special-tag">[Conclude]</strong>\n') \
|
63 |
.replace("[Reason]", '\n<strong class="special-tag">[Reason]</strong>\n') \
|
64 |
.replace("[Verify]", '\n<strong class="special-tag">[Verify]</strong>\n')
|
65 |
+
@spaces.GPU(duration=360)
|
66 |
def generate_response(message, chat_history, system_prompt, temperature, max_tokens):
|
67 |
# Create conversation history for model
|
68 |
conversation = [{"role": "system", "content": system_prompt}]
|