Abhishek Thakur commited on
Commit
42bb50f
Β·
1 Parent(s): 2f00a93

add some updates/fixes

Browse files
Files changed (3) hide show
  1. .env.example +1 -3
  2. README.md +52 -9
  3. competitions/__init__.py +2 -2
.env.example CHANGED
@@ -1,5 +1,3 @@
1
- HF_ACCESS_TOKEN=hf_app_XXX
2
  AUTOTRAIN_USERNAME=autoevaluator
3
  AUTOTRAIN_TOKEN=hf_XXX
4
- AUTOTRAIN_BACKEND_API=https://api.autotrain.huggingface.co
5
- MOONLANDING_URL=https://huggingface.co
 
 
1
  AUTOTRAIN_USERNAME=autoevaluator
2
  AUTOTRAIN_TOKEN=hf_XXX
3
+ COMPETITION_ID=zzzz/abc
 
README.md CHANGED
@@ -1,9 +1,52 @@
1
- ---
2
- title: my competition
3
- emoji: 🏒
4
- colorFrom: indigo
5
- colorTo: gray
6
- sdk: docker
7
- pinned: false
8
- app_port: 7860
9
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Competitions
2
+
3
+ Create a competition checklist:
4
+
5
+ - [ ] Create a space using https://huggingface.co/new-space
6
+ - [ ] Create a private dataset using https://huggingface.co/new-dataset
7
+ - [ ] Create a public dataset using https://huggingface.co/new-dataset
8
+ - [ ] Add the following secrets to the space:
9
+ - `AUTOTRAIN_TOKEN`: the token of the user that will be used to create autotrain projects
10
+ - `AUTOTRAIN_USERNAME`: the username of the user that will be used to create autotrain projects
11
+ - `COMPETITION_ID`: Private dataset created previously, e.g.: `my_org/my_private_dataset`
12
+
13
+ - Private dataset structure:
14
+
15
+ ```bash
16
+ .
17
+ β”œβ”€β”€ README.md
18
+ β”œβ”€β”€ submission_info/
19
+ β”œβ”€β”€ submissions/
20
+ β”œβ”€β”€ conf
21
+ β”œβ”€β”€ solution.csv
22
+ β”œβ”€β”€ COMPETITION_DESC.md
23
+ β”œβ”€β”€ SUBMISSION_DESC.md
24
+
25
+ ````
26
+
27
+ - Example content for `conf`:
28
+
29
+ ```
30
+ {
31
+ "SUBMISSION_LIMIT": 5,
32
+ "SELECTION_LIMIT": 2,
33
+ "END_DATE": "2022-11-23",
34
+ "EVAL_HIGHER_IS_BETTER": 1,
35
+ "DATASET": "abhishek/test_competition_dataset",
36
+ "COMPETITION_NAME": "Shoes vs Boots vs Sandals",
37
+ "SUBMISSION_COLUMNS": "id,target",
38
+ "EVAL_METRIC": "accuracy_score"
39
+ }
40
+ ```
41
+
42
+ - Public dataset structure:
43
+
44
+ ```bash
45
+ .
46
+ β”œβ”€β”€ README.md
47
+ β”œβ”€β”€ training files (folder/zip/csv)
48
+ β”œβ”€β”€ test files (folder/zip/csv)
49
+ β”œβ”€β”€ training labels
50
+ β”œβ”€β”€ sample_submission.csv
51
+
52
+ ```
competitions/__init__.py CHANGED
@@ -5,10 +5,10 @@ from .info import CompetitionInfo
5
 
6
  __version__ = "0.1.1"
7
 
8
- MOONLANDING_URL = os.getenv("MOONLANDING_URL")
9
  COMPETITION_ID = os.getenv("COMPETITION_ID")
10
  AUTOTRAIN_USERNAME = os.getenv("AUTOTRAIN_USERNAME")
11
  AUTOTRAIN_TOKEN = os.getenv("AUTOTRAIN_TOKEN")
12
- AUTOTRAIN_BACKEND_API = os.getenv("AUTOTRAIN_BACKEND_API")
13
 
14
  competition_info = CompetitionInfo(competition_id=COMPETITION_ID, autotrain_token=AUTOTRAIN_TOKEN)
 
5
 
6
  __version__ = "0.1.1"
7
 
8
+ MOONLANDING_URL = os.getenv("MOONLANDING_URL", "https://huggingface.co")
9
  COMPETITION_ID = os.getenv("COMPETITION_ID")
10
  AUTOTRAIN_USERNAME = os.getenv("AUTOTRAIN_USERNAME")
11
  AUTOTRAIN_TOKEN = os.getenv("AUTOTRAIN_TOKEN")
12
+ AUTOTRAIN_BACKEND_API = os.getenv("AUTOTRAIN_BACKEND_API", "https://api.autotrain.huggingface.co")
13
 
14
  competition_info = CompetitionInfo(competition_id=COMPETITION_ID, autotrain_token=AUTOTRAIN_TOKEN)