ryanrwatkins commited on
Commit
cea20bf
1 Parent(s): 722f026

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -904,6 +904,7 @@ with gr.Blocks(css=css) as demo:
904
  btn_submit = gr.Button("Submit")
905
  #total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
906
  btn_clear_conversation = gr.Button("Start New Conversation")
 
907
  with gr.Column():
908
  prompt_template = gr.Dropdown(label="Choose an Expert:", choices=list(prompt_templates.keys()))
909
  prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
@@ -911,7 +912,7 @@ with gr.Blocks(css=css) as demo:
911
  temperature = gr.Slider(minimum=0, maximum=2.0, value=0.7, step=0.1, label="Flexibility", info="Higher = More AI, Lower = More Expert")
912
  max_tokens = gr.Slider(minimum=100, maximum=400, value=200, step=1, label="Length of Response.")
913
  context_length = gr.Slider(minimum=1, maximum=5, value=2, step=1, label="Context Length", info="Number of previous questions you have asked.")
914
-
915
 
916
  btn_submit.click(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, state])
917
  input_message.submit(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, state])
 
904
  btn_submit = gr.Button("Submit")
905
  #total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
906
  btn_clear_conversation = gr.Button("Start New Conversation")
907
+ """
908
  with gr.Column():
909
  prompt_template = gr.Dropdown(label="Choose an Expert:", choices=list(prompt_templates.keys()))
910
  prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
 
912
  temperature = gr.Slider(minimum=0, maximum=2.0, value=0.7, step=0.1, label="Flexibility", info="Higher = More AI, Lower = More Expert")
913
  max_tokens = gr.Slider(minimum=100, maximum=400, value=200, step=1, label="Length of Response.")
914
  context_length = gr.Slider(minimum=1, maximum=5, value=2, step=1, label="Context Length", info="Number of previous questions you have asked.")
915
+ """
916
 
917
  btn_submit.click(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, state])
918
  input_message.submit(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, state])