Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -166,13 +166,14 @@ def generate_message_gigachat_plus_with_retry(prompt, gigachat_plus_temperature)
|
|
166 |
|
167 |
|
168 |
# Обновляем генерацию сообщений для отображения в интерфейсе
|
169 |
-
def generate_messages(description, advantages, *selected_values):
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
|
|
176 |
standard_prompt = generate_standard_prompt(description, advantages, *selected_values, gpt4o_temperature, gigachat_pro_temperature, gigachat_lite_temperature, gigachat_plus_temperature)
|
177 |
|
178 |
results = {
|
|
|
166 |
|
167 |
|
168 |
# Обновляем генерацию сообщений для отображения в интерфейсе
|
169 |
+
def generate_messages(description, advantages, *selected_values, gpt4o_temperature, gigachat_pro_temperature, gigachat_lite_temperature, gigachat_plus_temperature):
|
170 |
|
171 |
+
gpt4o_temperature = gpt4o_temperature.value # Получаем значение
|
172 |
+
gigachat_pro_temperature = gigachat_pro_temperature.value # Получаем значение
|
173 |
+
gigachat_lite_temperature = gigachat_lite_temperature.value # Получаем значение
|
174 |
+
gigachat_plus_temperature = gigachat_plus_temperature.value # Получаем значение
|
175 |
+
|
176 |
+
# Далее используйте эти переменные для генерации сообщений
|
177 |
standard_prompt = generate_standard_prompt(description, advantages, *selected_values, gpt4o_temperature, gigachat_pro_temperature, gigachat_lite_temperature, gigachat_plus_temperature)
|
178 |
|
179 |
results = {
|