Matt commited on
Commit
8e3579a
1 Parent(s): 0b3a0fe

Use partial for everything

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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, inputs=["zephyr"])
152
- load_llama.click(fn=load_template, inputs=["llama"])
153
- load_alpaca.click(fn=load_template, inputs=["alpaca"])
154
- load_vicuna.click(fn=load_template, inputs=["vicuna"])
155
- load_falcon.click(fn=load_template, inputs=["falcon"])
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()