EkhiAzur commited on
Commit
7625fb6
1 Parent(s): 39514f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=access_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