Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ from huggingface_hub import Repository
|
|
9 |
import os
|
10 |
|
11 |
access_token = os.environ['ACCES_TOKEN']
|
|
|
12 |
|
13 |
DATASET_REPO_URL = "https://huggingface.co/datasets/EkhiAzur/Demoko_informazioa"
|
14 |
DATA_FILENAME = "Erabiltzaileak.txt"
|
@@ -32,7 +33,7 @@ adibideak = json.load(open("./Adibideak.json", "r"))
|
|
32 |
def prozesatu(Testua, request: gr.Request):
|
33 |
|
34 |
repo = Repository(
|
35 |
-
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=
|
36 |
)
|
37 |
|
38 |
#Ip-a lortzeko kontuak
|
|
|
9 |
import os
|
10 |
|
11 |
access_token = os.environ['ACCES_TOKEN']
|
12 |
+
edit_token = os.environ['EDIT_TOKEN']
|
13 |
|
14 |
DATASET_REPO_URL = "https://huggingface.co/datasets/EkhiAzur/Demoko_informazioa"
|
15 |
DATA_FILENAME = "Erabiltzaileak.txt"
|
|
|
33 |
def prozesatu(Testua, request: gr.Request):
|
34 |
|
35 |
repo = Repository(
|
36 |
+
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=edit_token
|
37 |
)
|
38 |
|
39 |
#Ip-a lortzeko kontuak
|