Update maker.py
Browse files
maker.py
CHANGED
|
@@ -113,7 +113,7 @@ def extract_title_prompt_example(text, title, system_prompt, example_input):
|
|
| 113 |
return text, title, system_prompt, example_input
|
| 114 |
|
| 115 |
def make_open_gpt(message, history, current_title, current_system_prompt, current_example_input):
|
| 116 |
-
response = predict_beta(message, history,
|
| 117 |
response, title, system_prompt, example_input = extract_title_prompt_example(response, current_title, current_system_prompt, current_example_input)
|
| 118 |
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)
|
| 119 |
|
|
|
|
| 113 |
return text, title, system_prompt, example_input
|
| 114 |
|
| 115 |
def make_open_gpt(message, history, current_title, current_system_prompt, current_example_input):
|
| 116 |
+
response = predict_beta(message, history, system_prompt)
|
| 117 |
response, title, system_prompt, example_input = extract_title_prompt_example(response, current_title, current_system_prompt, current_example_input)
|
| 118 |
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)
|
| 119 |
|