ecemumutlu commited on
Commit
121d926
·
1 Parent(s): ab80e4c

Update readme

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -9,7 +9,26 @@ pinned: false
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
 
12
- ```shell
13
- conda activate model-eval-be
 
 
 
14
  pip install -r requirements.txt
15
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
 
12
+ ## Setup Environment
13
+
14
+ ```bash
15
+ python3 -m env model_be
16
+ source model_be/bin/activate
17
  pip install -r requirements.txt
18
+ ```
19
+
20
+ ## Secret Variables
21
+
22
+ - FastAPI uses "AUTH_UUID" as an environment variable to authenticate. Add this variable to your .env file on development mode (local deployment).
23
+ - If Huggingface space is used, set AUTH_UUID as a secret. (Set the same secret value in metunlp/backend)
24
+
25
+
26
+ ## Add New Task (Development)
27
+ Under virtual environment lib/python3/site-packages/lm_eval/tasks , add your new task. Once you are certain that the task works, add the task to the github repository (which is specified in requirements.txt file)
28
+
29
+ ## Run Application (port: 8080)
30
+ Change port or host on app.py if needed.
31
+
32
+ ```bash
33
+ python app.py
34
+ ```