Matt commited on
Commit
cce5ad0
1 Parent(s): 73dfdae
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ with gr.Blocks():
54
  with gr.Column():
55
  formatted_out = gr.TextArea(label="Formatted conversation")
56
  code_snippet_out = gr.TextArea(label="Code snippet to create PR", lines=3, show_label=True, show_copy_button=True)
57
- btn.click(fn=apply_chat_template,
58
  inputs=(template_in, conversation_in, generation_prompt_check, cleanup_whitespace_check),
59
  outputs=(formatted_out, code_snippet_out)
60
  )
 
54
  with gr.Column():
55
  formatted_out = gr.TextArea(label="Formatted conversation")
56
  code_snippet_out = gr.TextArea(label="Code snippet to create PR", lines=3, show_label=True, show_copy_button=True)
57
+ submit.click(fn=apply_chat_template,
58
  inputs=(template_in, conversation_in, generation_prompt_check, cleanup_whitespace_check),
59
  outputs=(formatted_out, code_snippet_out)
60
  )