Update maker.py
Browse files
maker.py
CHANGED
@@ -119,12 +119,12 @@ def extract_title_prompt_example(text):
|
|
119 |
|
120 |
def make_open_gpt(message, history, current_title, current_system_prompt, current_example_input, system_prompt=system_prompt):
|
121 |
response = predict_beta(message, history, system_prompt)
|
|
|
122 |
_, title, system_prompt, example_input = extract_title_prompt_example(response)
|
123 |
print("Extracted Title:", title)
|
124 |
print("Extracted System Prompt:", system_prompt)
|
125 |
print("Extracted Example Input:", example_input)
|
126 |
-
|
127 |
-
|
128 |
def set_title_example(title, example):
|
129 |
return [(None, welcome_preview_message.format(title, example))], example, gr.Column(visible=True), gr.Group(visible=True)
|
130 |
|
|
|
119 |
|
120 |
def make_open_gpt(message, history, current_title, current_system_prompt, current_example_input, system_prompt=system_prompt):
|
121 |
response = predict_beta(message, history, system_prompt)
|
122 |
+
print("Response before extraction:", response)
|
123 |
_, title, system_prompt, example_input = extract_title_prompt_example(response)
|
124 |
print("Extracted Title:", title)
|
125 |
print("Extracted System Prompt:", system_prompt)
|
126 |
print("Extracted Example Input:", example_input)
|
127 |
+
|
|
|
128 |
def set_title_example(title, example):
|
129 |
return [(None, welcome_preview_message.format(title, example))], example, gr.Column(visible=True), gr.Group(visible=True)
|
130 |
|