VladimirVorobev commited on
Commit
2103a1a
·
1 Parent(s): 01a1ceb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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='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',
15
  )
16
 
17
  gigachat = GigaChat(
18
- credentials='Y2Y4Yjk5ODUtNThmMC00ODdjLTk5ODItNDdmYzhmNDdmNzE0OjQ5Y2RjNTVkLWFmMGQtNGJlYy04OGNiLTI1Yzc3MmJkMzYwYw==',
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
  )