trying to write to dataset
Browse files- app.py +4 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -8,9 +8,12 @@ from datasets import load_dataset, Dataset
|
|
8 |
from huggingface_hub import upload_file
|
9 |
from evaluation import evaluate_problem
|
10 |
from datetime import datetime
|
11 |
-
|
|
|
12 |
|
13 |
PROBLEM_TYPES = ["geometrical", "simple_to_build", "mhd_stable"]
|
|
|
|
|
14 |
repo_id = "cgeorgiaw/constellaration-submissions"
|
15 |
|
16 |
def submit_boundary(
|
|
|
8 |
from huggingface_hub import upload_file
|
9 |
from evaluation import evaluate_problem
|
10 |
from datetime import datetime
|
11 |
+
import os
|
12 |
+
from huggingface_hub import HfApi
|
13 |
|
14 |
PROBLEM_TYPES = ["geometrical", "simple_to_build", "mhd_stable"]
|
15 |
+
TOKEN = os.environ.get("HF_TOKEN")
|
16 |
+
API = HfApi(token=TOKEN)
|
17 |
repo_id = "cgeorgiaw/constellaration-submissions"
|
18 |
|
19 |
def submit_boundary(
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
constellaration==0.2.1
|
2 |
gradio
|
3 |
-
datasets
|
|
|
|
1 |
constellaration==0.2.1
|
2 |
gradio
|
3 |
+
datasets
|
4 |
+
huggingface_hub
|