Spaces:
Runtime error
Runtime error
Matt
commited on
Commit
·
3396f08
1
Parent(s):
9512d4d
Update
Browse files
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
|
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()
|