Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2386,6 +2386,10 @@ with gr.Blocks() as demo:
|
|
2386 |
fn=generate_standard_prompt, # После очистки вызываем функцию для обновления промпта
|
2387 |
inputs=[description_input, advantages_input, key_message_input, approach_input] + selections,
|
2388 |
outputs=prompt_display # Мгновенно обновляем поле неперсонализированного промпта
|
|
|
|
|
|
|
|
|
2389 |
)
|
2390 |
|
2391 |
# Очистка всех полей кроме prompt_display
|
|
|
2386 |
fn=generate_standard_prompt, # После очистки вызываем функцию для обновления промпта
|
2387 |
inputs=[description_input, advantages_input, key_message_input, approach_input] + selections,
|
2388 |
outputs=prompt_display # Мгновенно обновляем поле неперсонализированного промпта
|
2389 |
+
).then(
|
2390 |
+
fn=update_best_example_prompt,
|
2391 |
+
inputs=[description_input] + selections,
|
2392 |
+
outputs=best_example_prompt
|
2393 |
)
|
2394 |
|
2395 |
# Очистка всех полей кроме prompt_display
|