ryanrwatkins commited on
Commit
33dddeb
Β·
1 Parent(s): a371e06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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], actor_description[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[1]=[prompt_template_preview])
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)