Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -845,7 +845,7 @@ def clear_unnecessary_fields():
|
|
845 |
"", "", "", "", "", "", "", "", "", "", # comment fields
|
846 |
"", "", "", "", "", "", "", "", "", "", # corrected message fields
|
847 |
"", "", "", "", "", "", "", "", "", "", # оставшиеся поля
|
848 |
-
"" # Дополнительное пустое значение
|
849 |
)
|
850 |
|
851 |
|
@@ -1109,13 +1109,14 @@ with gr.Blocks() as demo:
|
|
1109 |
outputs=[
|
1110 |
description_input, # Описание предложения
|
1111 |
advantages_input, # Преимущества
|
1112 |
-
*selections, # Параметры персонализации (Пол,
|
1113 |
]
|
1114 |
).then(
|
1115 |
fn=clear_unnecessary_fields,
|
1116 |
inputs=[],
|
1117 |
outputs=[
|
1118 |
prompt_display,
|
|
|
1119 |
output_text_gpt4o,
|
1120 |
output_text_gigachat_pro,
|
1121 |
output_text_gigachat_lite,
|
|
|
845 |
"", "", "", "", "", "", "", "", "", "", # comment fields
|
846 |
"", "", "", "", "", "", "", "", "", "", # corrected message fields
|
847 |
"", "", "", "", "", "", "", "", "", "", # оставшиеся поля
|
848 |
+
"", "" # Дополнительное пустое значение
|
849 |
)
|
850 |
|
851 |
|
|
|
1109 |
outputs=[
|
1110 |
description_input, # Описание предложения
|
1111 |
advantages_input, # Преимущества
|
1112 |
+
*selections, # Параметры персонализации (Пол, Поколение и т.д.)
|
1113 |
]
|
1114 |
).then(
|
1115 |
fn=clear_unnecessary_fields,
|
1116 |
inputs=[],
|
1117 |
outputs=[
|
1118 |
prompt_display,
|
1119 |
+
personalization_prompt, # Очищаем personalization_prompt
|
1120 |
output_text_gpt4o,
|
1121 |
output_text_gigachat_pro,
|
1122 |
output_text_gigachat_lite,
|