Spaces:
Runtime error
Runtime error
ryanrwatkins
commited on
Commit
Β·
33dddeb
1
Parent(s):
a371e06
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def download_prompt_templates():
|
|
72 |
|
73 |
def on_prompt_template_change(prompt_template):
|
74 |
if not isinstance(prompt_template, str): return
|
75 |
-
return prompt_templates[prompt_template]
|
76 |
|
77 |
def on_prompt_template_change_description(prompt_template):
|
78 |
if not isinstance(prompt_template, str): return
|
@@ -256,7 +256,7 @@ with gr.Blocks(css=css) as demo:
|
|
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
|
260 |
|
261 |
|
262 |
demo.load(download_prompt_templates, inputs=None, outputs=[prompt_template], queur=False)
|
|
|
72 |
|
73 |
def on_prompt_template_change(prompt_template):
|
74 |
if not isinstance(prompt_template, str): return
|
75 |
+
return prompt_templates[prompt_template]
|
76 |
|
77 |
def on_prompt_template_change_description(prompt_template):
|
78 |
if not isinstance(prompt_template, str): return
|
|
|
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)
|