Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -901,7 +901,10 @@ with gr.Blocks() as demo:
|
|
901 |
)
|
902 |
|
903 |
personalize_btn.click(
|
904 |
-
|
|
|
|
|
|
|
905 |
inputs=[
|
906 |
output_text_gpt4o,
|
907 |
output_text_gigachat_pro,
|
@@ -912,7 +915,9 @@ with gr.Blocks() as demo:
|
|
912 |
output_text_meta_llama_8b,
|
913 |
output_text_gemma_27b,
|
914 |
output_text_gemma_9b,
|
915 |
-
output_text_mistral # Добавляем Mistral
|
|
|
|
|
916 |
] + selections,
|
917 |
outputs=[
|
918 |
personalization_prompt,
|
@@ -929,6 +934,7 @@ with gr.Blocks() as demo:
|
|
929 |
]
|
930 |
)
|
931 |
|
|
|
932 |
# Обработка клика по кнопке восстановления
|
933 |
load_btn.click(
|
934 |
fn=lambda: load_last_user_request_from_github(),
|
|
|
901 |
)
|
902 |
|
903 |
personalize_btn.click(
|
904 |
+
fn=lambda gpt4o_message, gigachat_pro_message, gigachat_lite_message, gigachat_plus_message, meta_llama_405b_message, meta_llama_70b_message, meta_llama_8b_message, gemma_27b_message, gemma_9b_message, mistral_message, description, advantages, *selected_values: (
|
905 |
+
personalize_messages_with_yield(gpt4o_message, gigachat_pro_message, gigachat_lite_message, gigachat_plus_message, meta_llama_405b_message, meta_llama_70b_message, meta_llama_8b_message, gemma_27b_message, gemma_9b_message, mistral_message, *selected_values),
|
906 |
+
save_user_request_to_github(description, advantages, selected_values)
|
907 |
+
),
|
908 |
inputs=[
|
909 |
output_text_gpt4o,
|
910 |
output_text_gigachat_pro,
|
|
|
915 |
output_text_meta_llama_8b,
|
916 |
output_text_gemma_27b,
|
917 |
output_text_gemma_9b,
|
918 |
+
output_text_mistral, # Добавляем Mistral
|
919 |
+
description_input,
|
920 |
+
advantages_input
|
921 |
] + selections,
|
922 |
outputs=[
|
923 |
personalization_prompt,
|
|
|
934 |
]
|
935 |
)
|
936 |
|
937 |
+
|
938 |
# Обработка клика по кнопке восстановления
|
939 |
load_btn.click(
|
940 |
fn=lambda: load_last_user_request_from_github(),
|