ysharma HF staff commited on
Commit
3d12b03
1 Parent(s): eba4497

removed ASSISTANT_PREPEND

Browse files
Files changed (1) hide show
  1. app_dialogue.py +0 -2
app_dialogue.py CHANGED
@@ -289,7 +289,6 @@ def format_user_prompt_with_im_history_and_system_conditioning(
289
  # Format history
290
  for turn in history:
291
  user_utterance, assistant_utterance = turn
292
- assistant_utterance = assistant_utterance.replace(ASSISTANT_PREPEND, "")
293
  splitted_user_utterance = split_str_on_im_markdown(user_utterance)
294
 
295
  optional_space = ""
@@ -322,7 +321,6 @@ def format_user_prompt_with_im_history_and_system_conditioning(
322
  return resulting_list, current_user_prompt_list
323
 
324
 
325
- ASSISTANT_PREPEND = f"<img src='{IDEFICS_LOGO}' width='45'>"
326
  # dope_callback = gr.CSVLogger()
327
  # problematic_callback = gr.CSVLogger()
328
 
 
289
  # Format history
290
  for turn in history:
291
  user_utterance, assistant_utterance = turn
 
292
  splitted_user_utterance = split_str_on_im_markdown(user_utterance)
293
 
294
  optional_space = ""
 
321
  return resulting_list, current_user_prompt_list
322
 
323
 
 
324
  # dope_callback = gr.CSVLogger()
325
  # problematic_callback = gr.CSVLogger()
326