Kim Adams commited on
Commit
f18ca41
·
1 Parent(s): 49ebc4e
Files changed (2) hide show
  1. app.py +4 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -11,9 +11,10 @@ from slack_processing.slack_data_prep import FetchSlack, ProcessSlack
11
  from utilities import api_keys
12
  import PyPDF2
13
 
14
- #import pkg_resources
15
- #pypdf_version = pkg_resources.get_distribution("PyPDF2").version
16
- #print(f"python-pypdf_version version: {pypdf_version}")
 
17
 
18
  openai.api_key = api_keys.APIKeys().get_key('OPENAI_API_KEY')
19
  eleven_api_key = api_keys.APIKeys().get_key('ELEVEN_LABS_API_KEY')
 
11
  from utilities import api_keys
12
  import PyPDF2
13
 
14
+
15
+ import pkg_resources
16
+ dotenv_version = pkg_resources.get_distribution("tiktoken").version
17
+ print(f"tiktoken version: {dotenv_version}")
18
 
19
  openai.api_key = api_keys.APIKeys().get_key('OPENAI_API_KEY')
20
  eleven_api_key = api_keys.APIKeys().get_key('ELEVEN_LABS_API_KEY')
requirements.txt CHANGED
@@ -17,4 +17,5 @@ python-dotenv==1.0.0
17
  nltk==3.8.1
18
  bs4==0.0.1
19
  lxml==4.9.3
20
- PyPDF2==3.0.1
 
 
17
  nltk==3.8.1
18
  bs4==0.0.1
19
  lxml==4.9.3
20
+ PyPDF2==3.0.1
21
+ tiktoken==0.4.0