Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def multimodal_prompt(user_input, system_prompt="You are an expert medical analy
|
|
| 22 |
A string containing the generated text.
|
| 23 |
"""
|
| 24 |
# Combine user input and system prompt
|
| 25 |
-
formatted_input = f"<s>[INST]{system_prompt} {user_input}[/INST]"
|
| 26 |
|
| 27 |
# Encode the input text
|
| 28 |
encodeds = tokenizer(formatted_input, return_tensors="pt", add_special_tokens=False)
|
|
|
|
| 22 |
A string containing the generated text.
|
| 23 |
"""
|
| 24 |
# Combine user input and system prompt
|
| 25 |
+
formatted_input = f"<s>[INST]{system_prompt} {user_input}[/INST]</s>"
|
| 26 |
|
| 27 |
# Encode the input text
|
| 28 |
encodeds = tokenizer(formatted_input, return_tensors="pt", add_special_tokens=False)
|