Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from langchain_community.chat_models.gigachat import GigaChat
|
|
8 |
from openpyxl import load_workbook
|
9 |
|
10 |
# Авторизация в GigaChat Pro
|
11 |
-
gc_key =
|
12 |
-
chat_pro = GigaChat(credentials=gc_key, model='GigaChat-Pro
|
13 |
|
14 |
# Загрузка данных из Excel-файла
|
15 |
try:
|
|
|
8 |
from openpyxl import load_workbook
|
9 |
|
10 |
# Авторизация в GigaChat Pro
|
11 |
+
gc_key = os.getenv('GPT_KEY')
|
12 |
+
chat_pro = GigaChat(credentials=gc_key, model='GigaChat-Pro', max_tokens=68, temperature=1, verify_ssl_certs=False)
|
13 |
|
14 |
# Загрузка данных из Excel-файла
|
15 |
try:
|