Tonic commited on
Commit
9de6abb
1 Parent(s): b4d4c13

Update maker.py

Browse files
Files changed (1) hide show
  1. maker.py +2 -2
maker.py CHANGED
@@ -122,9 +122,9 @@ def extract_title_prompt_example(text, title, system_prompt, example_input):
122
  pass
123
  return text, title, system_prompt, example_input
124
 
125
- def make_open_gpt(message, history, current_title, current_system_prompt, current_example_input):
126
  response = predict_beta(message, history, system_prompt)
127
- response, title, system_prompt, example_input = extract_title_prompt_example(response, current_title, current_system_prompt, current_example_input)
128
  return "", history + [(message, response)], title, system_prompt, example_input, [(None, welcome_preview_message.format(title, example_input))], example_input, gr.Column(visible=True), gr.Group(visible=True)
129
 
130
  def set_title_example(title, example):
 
122
  pass
123
  return text, title, system_prompt, example_input
124
 
125
+ def make_open_gpt(message, history, current_title, system_prompt, current_example_input):
126
  response = predict_beta(message, history, system_prompt)
127
+ response, title, system_prompt, example_input = extract_title_prompt_example(response, current_title, system_prompt, current_example_input)
128
  return "", history + [(message, response)], title, system_prompt, example_input, [(None, welcome_preview_message.format(title, example_input))], example_input, gr.Column(visible=True), gr.Group(visible=True)
129
 
130
  def set_title_example(title, example):