olofbengtsson commited on
Commit
e6bef31
1 Parent(s): 4eaea05

Translated how to get dependencies

Browse files
Files changed (1) hide show
  1. README.md +9 -9
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
- För att alla dependencies:
90
 
91
- 1. skapa en virtual environment: https://docs.python.org/3/library/venv.html
92
- 2. Aktivera din virtual environment
93
- 3. till projektets root path och skriv i terminalen:
94
  $ pip install -r requirements.txt
95
- 4. I vissa fall funkar det inte att installera twint för Ubuntu. Efter att ha ställt in allt funkade det efter att ha kört "sudo apt-get install build- essential" i terminalen.
96
- 5. För att använda openai behövs en auktoriserings-token. Detta skapas genom att skapa en '.env' fil i projektets root path.
97
- 6. Skriv in följande i den filen:
98
- OPENAI_AUTHTOKEN=din open-ai token
99
- 7. Nu borde TextClassifier kunna använda openai, givet att du har timmar att lägga till din token.
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