Commit
·
2103a1a
1
Parent(s):
01a1ceb
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
__import__('pysqlite3')
|
|
|
2 |
import sys
|
3 |
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
|
4 |
import chromadb
|
@@ -11,11 +12,11 @@ from langchain.chains import LLMChain
|
|
11 |
from langchain.prompts import PromptTemplate
|
12 |
|
13 |
chatgpt = OpenAI(
|
14 |
-
api_key='
|
15 |
)
|
16 |
|
17 |
gigachat = GigaChat(
|
18 |
-
credentials='
|
19 |
scope='GIGACHAT_API_PERS',
|
20 |
verify_ssl_certs=False
|
21 |
)
|
|
|
1 |
__import__('pysqlite3')
|
2 |
+
import os
|
3 |
import sys
|
4 |
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
|
5 |
import chromadb
|
|
|
12 |
from langchain.prompts import PromptTemplate
|
13 |
|
14 |
chatgpt = OpenAI(
|
15 |
+
api_key=os.getenv('OPEN_AI_API_KEY'),
|
16 |
)
|
17 |
|
18 |
gigachat = GigaChat(
|
19 |
+
credentials=os.getenv('GIGACHAT_API_KEY'),
|
20 |
scope='GIGACHAT_API_PERS',
|
21 |
verify_ssl_certs=False
|
22 |
)
|