Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def wrap_text(text, width=90):
|
|
| 18 |
|
| 19 |
def multimodal_prompt(user_input, system_prompt="You are an expert medical analyst:"):
|
| 20 |
# Combine user input and system prompt
|
| 21 |
-
formatted_input = f"{system_prompt} {user_input}
|
| 22 |
|
| 23 |
# Encode the input text
|
| 24 |
encodeds = tokenizer(formatted_input, return_tensors="pt", add_special_tokens=False)
|
|
@@ -57,7 +57,7 @@ class ChatBot:
|
|
| 57 |
|
| 58 |
def predict(self, user_input, system_prompt):
|
| 59 |
# Combine user input and system prompt
|
| 60 |
-
formatted_input = f"{system_prompt} {user_input}
|
| 61 |
|
| 62 |
# Encode user input
|
| 63 |
user_input_ids = tokenizer.encode(formatted_input, return_tensors="pt")
|
|
|
|
| 18 |
|
| 19 |
def multimodal_prompt(user_input, system_prompt="You are an expert medical analyst:"):
|
| 20 |
# Combine user input and system prompt
|
| 21 |
+
formatted_input = f"{system_prompt} {user_input}"
|
| 22 |
|
| 23 |
# Encode the input text
|
| 24 |
encodeds = tokenizer(formatted_input, return_tensors="pt", add_special_tokens=False)
|
|
|
|
| 57 |
|
| 58 |
def predict(self, user_input, system_prompt):
|
| 59 |
# Combine user input and system prompt
|
| 60 |
+
formatted_input = f"{system_prompt} {user_input}"
|
| 61 |
|
| 62 |
# Encode user input
|
| 63 |
user_input_ids = tokenizer.encode(formatted_input, return_tensors="pt")
|