Spaces:
Runtime error
Runtime error
olofbengtsson
commited on
Commit
•
e6bef31
1
Parent(s):
4eaea05
Translated how to get dependencies
Browse files
README.md
CHANGED
@@ -86,17 +86,17 @@ För att utveckla lokalt:
|
|
86 |
5. Nu går det bra att utveckla lokalt och pusha upp till remote server i samma branch.
|
87 |
|
88 |
|
89 |
-
|
90 |
|
91 |
-
1.
|
92 |
-
2.
|
93 |
-
3.
|
94 |
$ pip install -r requirements.txt
|
95 |
-
4.
|
96 |
-
5.
|
97 |
-
6.
|
98 |
-
OPENAI_AUTHTOKEN=
|
99 |
-
7.
|
100 |
|
101 |
|
102 |
|
|
|
86 |
5. Nu går det bra att utveckla lokalt och pusha upp till remote server i samma branch.
|
87 |
|
88 |
|
89 |
+
To get all the dependencies:
|
90 |
|
91 |
+
1. Create a virtual environment: https://docs.python.org/3/library/venv.html
|
92 |
+
2. Activate your virtual environment
|
93 |
+
3. Go to the root path of the project and type in the terminal:
|
94 |
$ pip install -r requirements.txt
|
95 |
+
4. In some cases twint does not install properly for Ubutnu. After setting everything up, this was solved by typing "sudo apt-get install build-essential" in the terminal
|
96 |
+
5. In order to use OpenAI you need an authorization token. This is created by creating an 'env.' file to the root path of the project.
|
97 |
+
6. Type following in that file:
|
98 |
+
OPENAI_AUTHTOKEN = your open-ai token
|
99 |
+
7. The python file TextClassifier should now be able to use OpenAI, given that your token is not used up.
|
100 |
|
101 |
|
102 |
|