Update maker.py
Browse files
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,
|
126 |
response = predict_beta(message, history, system_prompt)
|
127 |
-
response, title, system_prompt, example_input = extract_title_prompt_example(response, current_title,
|
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):
|