Spaces:
Running
Running
Commit
·
a371e06
1
Parent(s):
eff8c86
Update app.py
Browse files
app.py
CHANGED
@@ -255,8 +255,8 @@ with gr.Blocks(css=css) as demo:
|
|
255 |
btn_submit.click(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, total_tokens_str, state])
|
256 |
input_message.submit(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, total_tokens_str, state])
|
257 |
btn_clear_conversation.click(clear_conversation, [], [input_message, chatbot, total_tokens_str, state])
|
258 |
-
prompt_template.change(on_prompt_template_change, inputs=[prompt_template], outputs=[prompt_template_preview])
|
259 |
#prompt_template.change(on_prompt_template_change, inputs=[prompt_template], outputs=[prompt_template_preview])
|
|
|
260 |
|
261 |
|
262 |
demo.load(download_prompt_templates, inputs=None, outputs=[prompt_template], queur=False)
|
|
|
255 |
btn_submit.click(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, total_tokens_str, state])
|
256 |
input_message.submit(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, total_tokens_str, state])
|
257 |
btn_clear_conversation.click(clear_conversation, [], [input_message, chatbot, total_tokens_str, state])
|
|
|
258 |
#prompt_template.change(on_prompt_template_change, inputs=[prompt_template], outputs=[prompt_template_preview])
|
259 |
+
prompt_template.change(on_prompt_template_change, inputs=[prompt_template], outputs[1]=[prompt_template_preview])
|
260 |
|
261 |
|
262 |
demo.load(download_prompt_templates, inputs=None, outputs=[prompt_template], queur=False)
|