Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ def call_model(prompt):
|
|
32 |
try:
|
33 |
messages = [SystemMessage(content=prompt)]
|
34 |
res = chat_pro.invoke(messages)
|
35 |
-
print(res)
|
36 |
-
return res
|
37 |
except Exception as e:
|
38 |
return f"Ошибка при обращении к GigaChat-Pro: {e}"
|
39 |
|
|
|
32 |
try:
|
33 |
messages = [SystemMessage(content=prompt)]
|
34 |
res = chat_pro.invoke(messages)
|
35 |
+
print(res.content)
|
36 |
+
return res.content
|
37 |
except Exception as e:
|
38 |
return f"Ошибка при обращении к GigaChat-Pro: {e}"
|
39 |
|