Tonic commited on
Commit
1ac0fa5
·
1 Parent(s): f6cff0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ class StarlingBot:
38
  if mode == "Assistant":
39
  conversation = f" GPT4 Correct Assistant: {system_prompt if system_prompt else self.system_prompt} GPT4 Correct Assistant: {assistant_message if assistant_message else ''} GPT4 Correct User: {user_message} GPT4 Correct Assistant:"
40
  else: # mode == "Coder"
41
- conversation = f" Code Assistant: {system_prompt if system_prompt else self.system_prompt} Code Assistant: {assistant_message if assistant_message else ''} GPT4 Correct User: {user_message} Code Assistant:"
42
  input_ids = tokenizer.encode(conversation, return_tensors="pt", add_special_tokens=True)
43
  input_ids = input_ids.to(device)
44
  response = model.generate(
 
38
  if mode == "Assistant":
39
  conversation = f" GPT4 Correct Assistant: {system_prompt if system_prompt else self.system_prompt} GPT4 Correct Assistant: {assistant_message if assistant_message else ''} GPT4 Correct User: {user_message} GPT4 Correct Assistant:"
40
  else: # mode == "Coder"
41
+ conversation = f" Code Assistant: {system_prompt if system_prompt else self.system_prompt} Code Assistant: {assistant_message if assistant_message else ''} Code User:: {user_message} Code Assistant:"
42
  input_ids = tokenizer.encode(conversation, return_tensors="pt", add_special_tokens=True)
43
  input_ids = input_ids.to(device)
44
  response = model.generate(