Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def wrap_text(text, width=90):
|
|
| 20 |
def multimodal_prompt(user_input, system_prompt="You are an expert medical analyst:"):
|
| 21 |
|
| 22 |
# Combine user input and system prompt
|
| 23 |
-
formatted_input = f"
|
| 24 |
|
| 25 |
# Encode the input text
|
| 26 |
encodeds = tokenizer(formatted_input, return_tensors="pt", add_special_tokens=False)
|
|
|
|
| 20 |
def multimodal_prompt(user_input, system_prompt="You are an expert medical analyst:"):
|
| 21 |
|
| 22 |
# Combine user input and system prompt
|
| 23 |
+
formatted_input = f"{user_input}{system_prompt}"
|
| 24 |
|
| 25 |
# Encode the input text
|
| 26 |
encodeds = tokenizer(formatted_input, return_tensors="pt", add_special_tokens=False)
|