fruitpicker01 commited on
Commit
e8e5e59
·
verified ·
1 Parent(s): ffdbb3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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