Matt commited on
Commit
3396f08
·
1 Parent(s): 9512d4d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def apply_chat_template(template):
23
  with_gen = tokenizer.apply_chat_template(conversation, tokenize=False, add_generation_prompt=True)
24
  out = f"Conversation {i} without generation prompt:\n\n{without_gen}\n\nConversation {i} with generation prompt:\n\n{with_gen}\n\n"
25
  outputs.append(out)
26
- return *outputs
27
 
28
  iface = gr.Interface(fn=apply_chat_template, inputs="text", outputs=["text"] * len(conversations))
29
  iface.launch()
 
23
  with_gen = tokenizer.apply_chat_template(conversation, tokenize=False, add_generation_prompt=True)
24
  out = f"Conversation {i} without generation prompt:\n\n{without_gen}\n\nConversation {i} with generation prompt:\n\n{with_gen}\n\n"
25
  outputs.append(out)
26
+ return tuple(outputs)
27
 
28
  iface = gr.Interface(fn=apply_chat_template, inputs="text", outputs=["text"] * len(conversations))
29
  iface.launch()