pp3232133 commited on
Commit
b941105
·
1 Parent(s): 3834f72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -11,11 +11,10 @@ with open("config.txt", "r") as f:
11
 
12
  repo_id = config["repo_id"]
13
  repo_type = config["repo_type"]
14
- username = config["username"]
15
- password = config["password"]
16
 
17
  # Utworzenie folderu Hugging Face z tokenem uwierzytelniającym
18
- hf_folder = HfFolder(repo_id, repo_type, token=username + ":" + password)
19
 
20
  # Wczytanie modelu chatbota z Hugging Face
21
  model_name = "pp3232133/distilgpt2-wikitext2"
 
11
 
12
  repo_id = config["repo_id"]
13
  repo_type = config["repo_type"]
14
+ token = config["token"]
 
15
 
16
  # Utworzenie folderu Hugging Face z tokenem uwierzytelniającym
17
+ hf_folder = HfFolder(repo_id, repo_type, token=token)
18
 
19
  # Wczytanie modelu chatbota z Hugging Face
20
  model_name = "pp3232133/distilgpt2-wikitext2"