Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -119,6 +119,7 @@ def generate_personalized_message_gigachat_lite(message, personalization_prompt)
|
|
119 |
|
120 |
def generate_personalized_message_gigachat_plus(message, personalization_prompt):
|
121 |
try:
|
|
|
122 |
messages = [SystemMessage(content=f"{personalization_prompt}")]
|
123 |
res = chat_plus(messages)
|
124 |
return res.content.strip()
|
@@ -166,6 +167,7 @@ def generate_message_gigachat_lite(prompt):
|
|
166 |
# Функция для генерации сообщения с помощью GigaChat-Lite+
|
167 |
def generate_message_gigachat_plus(prompt):
|
168 |
try:
|
|
|
169 |
messages = [SystemMessage(content=prompt)]
|
170 |
res = chat_plus(messages)
|
171 |
return res.content.strip()
|
|
|
119 |
|
120 |
def generate_personalized_message_gigachat_plus(message, personalization_prompt):
|
121 |
try:
|
122 |
+
time.sleep(2)
|
123 |
messages = [SystemMessage(content=f"{personalization_prompt}")]
|
124 |
res = chat_plus(messages)
|
125 |
return res.content.strip()
|
|
|
167 |
# Функция для генерации сообщения с помощью GigaChat-Lite+
|
168 |
def generate_message_gigachat_plus(prompt):
|
169 |
try:
|
170 |
+
time.sleep(2)
|
171 |
messages = [SystemMessage(content=prompt)]
|
172 |
res = chat_plus(messages)
|
173 |
return res.content.strip()
|