Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def generate_response(message, history):
|
|
| 29 |
conversation += f"user: {message}\nassistant: "
|
| 30 |
|
| 31 |
condition = "<|quad_end|><|object_ref_end|>"
|
| 32 |
-
prompt = f"<|im_start|>{condition}{conversation}
|
| 33 |
|
| 34 |
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 35 |
# Mark the prompt as a single bidirectional prefix block β see "PrefixLM mask" below.
|
|
|
|
| 29 |
conversation += f"user: {message}\nassistant: "
|
| 30 |
|
| 31 |
condition = "<|quad_end|><|object_ref_end|>"
|
| 32 |
+
prompt = f"<|im_start|>{condition}{conversation} "
|
| 33 |
|
| 34 |
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 35 |
# Mark the prompt as a single bidirectional prefix block β see "PrefixLM mask" below.
|