Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ def generate(
|
|
21 |
# Set tokenize correctly. Otherwise ticking the box breaks it.
|
22 |
if model_name == "Locutusque/TinyMistral-248M-v3":
|
23 |
prompt = user_input
|
24 |
-
gr.Interface.notify("Warning: Locutusque/TinyMistral-248M-v3 is an experimental preview model, performance is not guaranteed", type="warning")
|
25 |
else:
|
26 |
prompt = f"<|im_start|>user\n{user_input}<|im_end|>\n<|im_start|>assistant\n"
|
27 |
outputs = pipe(prompt, max_new_tokens=max_new_tokens, do_sample=True,
|
|
|
21 |
# Set tokenize correctly. Otherwise ticking the box breaks it.
|
22 |
if model_name == "Locutusque/TinyMistral-248M-v3":
|
23 |
prompt = user_input
|
|
|
24 |
else:
|
25 |
prompt = f"<|im_start|>user\n{user_input}<|im_end|>\n<|im_start|>assistant\n"
|
26 |
outputs = pipe(prompt, max_new_tokens=max_new_tokens, do_sample=True,
|