Spaces:
Runtime error
Runtime error
Matt
commited on
Commit
·
0183241
1
Parent(s):
be3f3fa
Indentation
Browse files
app.py
CHANGED
|
@@ -142,16 +142,16 @@ with gr.Blocks() as demo:
|
|
| 142 |
with gr.Column():
|
| 143 |
formatted_out = gr.TextArea(label="Formatted conversation")
|
| 144 |
code_snippet_out = gr.TextArea(label="Code snippet to create PR", lines=3, show_label=True, show_copy_button=True)
|
| 145 |
-
submit.click(fn=apply_chat_template,
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
load_chatml.click(load_template, "chatml")
|
| 150 |
-
load_zephyr.click(load_template, "zephyr")
|
| 151 |
-
load_llama.click(load_template, "llama")
|
| 152 |
-
load_alpaca.click(load_template, "alpaca")
|
| 153 |
-
load_vicuna.click(load_template, "vicuna")
|
| 154 |
-
load_falcon.click(load_template, "falcon")
|
| 155 |
|
| 156 |
|
| 157 |
demo.launch()
|
|
|
|
| 142 |
with gr.Column():
|
| 143 |
formatted_out = gr.TextArea(label="Formatted conversation")
|
| 144 |
code_snippet_out = gr.TextArea(label="Code snippet to create PR", lines=3, show_label=True, show_copy_button=True)
|
| 145 |
+
submit.click(fn=apply_chat_template,
|
| 146 |
+
inputs=[template_in, conversation_in, generation_prompt_check, cleanup_whitespace_check],
|
| 147 |
+
outputs=[formatted_out, code_snippet_out]
|
| 148 |
+
)
|
| 149 |
+
load_chatml.click(load_template, "chatml")
|
| 150 |
+
load_zephyr.click(load_template, "zephyr")
|
| 151 |
+
load_llama.click(load_template, "llama")
|
| 152 |
+
load_alpaca.click(load_template, "alpaca")
|
| 153 |
+
load_vicuna.click(load_template, "vicuna")
|
| 154 |
+
load_falcon.click(load_template, "falcon")
|
| 155 |
|
| 156 |
|
| 157 |
demo.launch()
|