Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def build_prompt(messages):
|
|
| 48 |
prompt += "<|im_start|>assistant\n"
|
| 49 |
return prompt
|
| 50 |
|
| 51 |
-
def generate_response(conversation_history, max_new_tokens=
|
| 52 |
prompt_text = build_prompt(conversation_history)
|
| 53 |
|
| 54 |
inputs = tokenizer(prompt_text, return_tensors="pt").to(device)
|
|
|
|
| 48 |
prompt += "<|im_start|>assistant\n"
|
| 49 |
return prompt
|
| 50 |
|
| 51 |
+
def generate_response(conversation_history, max_new_tokens=1500):
|
| 52 |
prompt_text = build_prompt(conversation_history)
|
| 53 |
|
| 54 |
inputs = tokenizer(prompt_text, return_tensors="pt").to(device)
|