Spaces:
Sleeping
Sleeping
fruitpicker01
commited on
Commit
•
641416a
1
Parent(s):
6839970
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
-
import random
|
4 |
import pandas as pd
|
5 |
-
|
|
|
|
|
|
|
6 |
|
7 |
# Авторизация в GigaChat Pro
|
8 |
-
gc_key =
|
9 |
chat_pro = GigaChat(credentials=gc_key, model='GigaChat-Pro-3', max_tokens=68, temperature=1, verify_ssl_certs=False)
|
10 |
|
11 |
# Загрузка данных из Excel-файла
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
|
|
3 |
import pandas as pd
|
4 |
+
import time
|
5 |
+
from langchain.schema import SystemMessage
|
6 |
+
from langchain_community.chat_models.gigachat import GigaChat
|
7 |
+
from openpyxl import load_workbook
|
8 |
|
9 |
# Авторизация в GigaChat Pro
|
10 |
+
gc_key = os.getenv('GC_KEY')
|
11 |
chat_pro = GigaChat(credentials=gc_key, model='GigaChat-Pro-3', max_tokens=68, temperature=1, verify_ssl_certs=False)
|
12 |
|
13 |
# Загрузка данных из Excel-файла
|