santoshtyss commited on
Commit
e281d3d
·
1 Parent(s): 1f54647

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ import matplotlib.pyplot as plt
9
 
10
  import io
11
  import requests
12
- from huggingface_hub import notebook_login
13
 
14
  import os
15
 
@@ -23,9 +23,9 @@ os.system('pip install accelerate')
23
  os.system('pip install transformers[sentencepiece]')
24
  os.system('pip install Pillow')
25
  os.system('pip install gradio')
 
26
 
27
-
28
- notebook_login()
29
 
30
 
31
 
 
9
 
10
  import io
11
  import requests
12
+ from huggingface_hub import login
13
 
14
  import os
15
 
 
23
  os.system('pip install transformers[sentencepiece]')
24
  os.system('pip install Pillow')
25
  os.system('pip install gradio')
26
+ AUTH_TOKEN = os.environ.getattribute("AUTH_TOKEN")
27
 
28
+ login(token=AUTH_TOKEN)
 
29
 
30
 
31