Spaces:
Runtime error
Runtime error
Matt
commited on
Commit
•
8e3579a
1
Parent(s):
0b3a0fe
Use partial for everything
Browse files
app.py
CHANGED
@@ -148,11 +148,11 @@ with gr.Blocks() as demo:
|
|
148 |
outputs=[formatted_out, code_snippet_out]
|
149 |
)
|
150 |
load_chatml.click(fn=partial(load_template, "chatml"))
|
151 |
-
load_zephyr.click(fn=load_template,
|
152 |
-
load_llama.click(fn=load_template,
|
153 |
-
load_alpaca.click(fn=load_template,
|
154 |
-
load_vicuna.click(fn=load_template,
|
155 |
-
load_falcon.click(fn=load_template,
|
156 |
|
157 |
|
158 |
demo.launch()
|
|
|
148 |
outputs=[formatted_out, code_snippet_out]
|
149 |
)
|
150 |
load_chatml.click(fn=partial(load_template, "chatml"))
|
151 |
+
load_zephyr.click(fn=partial(load_template, "zephyr"))
|
152 |
+
load_llama.click(fn=partial(load_template, "llama"))
|
153 |
+
load_alpaca.click(fn=partial(load_template, "alpaca"))
|
154 |
+
load_vicuna.click(fn=partial(load_template, "vicuna"))
|
155 |
+
load_falcon.click(fn=partial(load_template, "falcon"))
|
156 |
|
157 |
|
158 |
demo.launch()
|