Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- inf_chat.py +1 -1
inf_chat.py
CHANGED
|
@@ -19,7 +19,7 @@ MODEL_OPTIONS = {
|
|
| 19 |
def generate_text(model_choice, messages):
|
| 20 |
full_response = ""
|
| 21 |
|
| 22 |
-
if "Mixtral" or "Qwen" in model_choice:
|
| 23 |
prompt = "\n".join([f"Human: {m[0]}\nAI: {m[1] if m[1] else ''}" for m in messages])
|
| 24 |
prompt += f"\nHuman: {messages[-1][0]}\nAI:"
|
| 25 |
|
|
|
|
| 19 |
def generate_text(model_choice, messages):
|
| 20 |
full_response = ""
|
| 21 |
|
| 22 |
+
if "Mixtral" in model_choice or "Qwen" in model_choice:
|
| 23 |
prompt = "\n".join([f"Human: {m[0]}\nAI: {m[1] if m[1] else ''}" for m in messages])
|
| 24 |
prompt += f"\nHuman: {messages[-1][0]}\nAI:"
|
| 25 |
|