Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -953,9 +953,41 @@ with gr.Blocks() as demo:
|
|
953 |
output_text_meta_llama_8b,
|
954 |
output_text_gemma_27b,
|
955 |
output_text_gemma_9b,
|
956 |
-
output_text_mistral
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
957 |
]
|
958 |
)
|
|
|
959 |
|
960 |
personalize_btn.click(
|
961 |
fn=personalize_and_save,
|
@@ -969,7 +1001,7 @@ with gr.Blocks() as demo:
|
|
969 |
output_text_meta_llama_8b,
|
970 |
output_text_gemma_27b,
|
971 |
output_text_gemma_9b,
|
972 |
-
output_text_mistral,
|
973 |
description_input,
|
974 |
advantages_input
|
975 |
] + selections,
|
@@ -984,7 +1016,27 @@ with gr.Blocks() as demo:
|
|
984 |
personalized_output_text_meta_llama_8b,
|
985 |
personalized_output_text_gemma_27b,
|
986 |
personalized_output_text_gemma_9b,
|
987 |
-
personalized_output_text_mistral
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
988 |
]
|
989 |
)
|
990 |
|
|
|
953 |
output_text_meta_llama_8b,
|
954 |
output_text_gemma_27b,
|
955 |
output_text_gemma_9b,
|
956 |
+
output_text_mistral,
|
957 |
+
personalization_prompt, # Очищаем персонализированный промпт
|
958 |
+
personalized_output_text_gpt4o,
|
959 |
+
personalized_output_text_gigachat_pro,
|
960 |
+
personalized_output_text_gigachat_lite,
|
961 |
+
personalized_output_text_gigachat_plus,
|
962 |
+
personalized_output_text_meta_llama_405b,
|
963 |
+
personalized_output_text_meta_llama_70b,
|
964 |
+
personalized_output_text_meta_llama_8b,
|
965 |
+
personalized_output_text_gemma_27b,
|
966 |
+
personalized_output_text_gemma_9b,
|
967 |
+
personalized_output_text_mistral,
|
968 |
+
comment_gpt4o, # Очищаем комментарии
|
969 |
+
corrected_gpt4o,
|
970 |
+
comment_gigachat_pro,
|
971 |
+
corrected_gigachat_pro,
|
972 |
+
comment_gigachat_lite,
|
973 |
+
corrected_gigachat_lite,
|
974 |
+
comment_gigachat_plus,
|
975 |
+
corrected_gigachat_plus,
|
976 |
+
comment_meta_llama_405b,
|
977 |
+
corrected_meta_llama_405b,
|
978 |
+
comment_meta_llama_70b,
|
979 |
+
corrected_meta_llama_70b,
|
980 |
+
comment_meta_llama_8b,
|
981 |
+
corrected_meta_llama_8b,
|
982 |
+
comment_gemma_27b,
|
983 |
+
corrected_gemma_27b,
|
984 |
+
comment_gemma_9b,
|
985 |
+
corrected_gemma_9b,
|
986 |
+
comment_mistral,
|
987 |
+
corrected_mistral
|
988 |
]
|
989 |
)
|
990 |
+
|
991 |
|
992 |
personalize_btn.click(
|
993 |
fn=personalize_and_save,
|
|
|
1001 |
output_text_meta_llama_8b,
|
1002 |
output_text_gemma_27b,
|
1003 |
output_text_gemma_9b,
|
1004 |
+
output_text_mistral,
|
1005 |
description_input,
|
1006 |
advantages_input
|
1007 |
] + selections,
|
|
|
1016 |
personalized_output_text_meta_llama_8b,
|
1017 |
personalized_output_text_gemma_27b,
|
1018 |
personalized_output_text_gemma_9b,
|
1019 |
+
personalized_output_text_mistral,
|
1020 |
+
comment_gpt4o, # Очищаем комментарии
|
1021 |
+
corrected_gpt4o,
|
1022 |
+
comment_gigachat_pro,
|
1023 |
+
corrected_gigachat_pro,
|
1024 |
+
comment_gigachat_lite,
|
1025 |
+
corrected_gigachat_lite,
|
1026 |
+
comment_gigachat_plus,
|
1027 |
+
corrected_gigachat_plus,
|
1028 |
+
comment_meta_llama_405b,
|
1029 |
+
corrected_meta_llama_405b,
|
1030 |
+
comment_meta_llama_70b,
|
1031 |
+
corrected_meta_llama_70b,
|
1032 |
+
comment_meta_llama_8b,
|
1033 |
+
corrected_meta_llama_8b,
|
1034 |
+
comment_gemma_27b,
|
1035 |
+
corrected_gemma_27b,
|
1036 |
+
comment_gemma_9b,
|
1037 |
+
corrected_gemma_9b,
|
1038 |
+
comment_mistral,
|
1039 |
+
corrected_mistral
|
1040 |
]
|
1041 |
)
|
1042 |
|