Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def create_chat_template_messages(history, prompt):
|
|
35 |
|
36 |
return messages
|
37 |
|
38 |
-
@spaces.GPU
|
39 |
def generate_responses(prompt, history):
|
40 |
messages = create_chat_template_messages(history, prompt)
|
41 |
wrapped_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
|
|
35 |
|
36 |
return messages
|
37 |
|
38 |
+
@spaces.GPU(duration=60)
|
39 |
def generate_responses(prompt, history):
|
40 |
messages = create_chat_template_messages(history, prompt)
|
41 |
wrapped_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|