Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def generate(
|
|
| 19 |
pipe = load_model(model_name)
|
| 20 |
|
| 21 |
# Set tokenize correctly. Otherwise ticking the box breaks it.
|
| 22 |
-
if model_name == "M4-ai/tau-
|
| 23 |
prompt = user_input
|
| 24 |
else:
|
| 25 |
prompt = f"<|im_start|>user\n{user_input}<|im_end|>\n<|im_start|>assistant\n"
|
|
|
|
| 19 |
pipe = load_model(model_name)
|
| 20 |
|
| 21 |
# Set tokenize correctly. Otherwise ticking the box breaks it.
|
| 22 |
+
if model_name == "M4-ai/tau-1.8B":
|
| 23 |
prompt = user_input
|
| 24 |
else:
|
| 25 |
prompt = f"<|im_start|>user\n{user_input}<|im_end|>\n<|im_start|>assistant\n"
|