Tonic commited on
Commit
ab587f1
1 Parent(s): 6f803b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ class ChatBot:
68
 
69
  def predict(self, user_input, system_prompt="You are an expert medical analyst:"):
70
  # Combine user input and system prompt
71
- formatted_input = f"[INSTRUCTION:]{system_prompt}[QUESTION:] {user_input}"
72
 
73
  # Encode user input
74
  user_input_ids = tokenizer.encode(formatted_input, return_tensors="pt")
 
68
 
69
  def predict(self, user_input, system_prompt="You are an expert medical analyst:"):
70
  # Combine user input and system prompt
71
+ formatted_input = f"{user_input}{system_prompt}"
72
 
73
  # Encode user input
74
  user_input_ids = tokenizer.encode(formatted_input, return_tensors="pt")