Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -318,9 +318,8 @@ with gr.Blocks() as demo:
|
|
318 |
error_message_gigachat_plus = gr.Textbox(label="Результат проверки GigaChat-Lite+", lines=6)
|
319 |
|
320 |
check_errors_btn.click(
|
321 |
-
check_errors_with_yield,
|
322 |
inputs=[
|
323 |
-
rules,
|
324 |
output_text_gpt4o,
|
325 |
output_text_gigachat_pro,
|
326 |
output_text_gigachat_lite,
|
@@ -335,5 +334,6 @@ with gr.Blocks() as demo:
|
|
335 |
status_display
|
336 |
]
|
337 |
)
|
|
|
338 |
|
339 |
demo.launch()
|
|
|
318 |
error_message_gigachat_plus = gr.Textbox(label="Результат проверки GigaChat-Lite+", lines=6)
|
319 |
|
320 |
check_errors_btn.click(
|
321 |
+
lambda *personalized_messages: check_errors_with_yield(rules, *personalized_messages), # Передаем rules внутри лямбды
|
322 |
inputs=[
|
|
|
323 |
output_text_gpt4o,
|
324 |
output_text_gigachat_pro,
|
325 |
output_text_gigachat_lite,
|
|
|
334 |
status_display
|
335 |
]
|
336 |
)
|
337 |
+
|
338 |
|
339 |
demo.launch()
|