jsu27 commited on
Commit
b2f9107
1 Parent(s): 523ab02
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -14,10 +14,11 @@ from upsampling import get_pipeline, upscale_image
14
 
15
  import gradio as gr
16
 
17
- from huggingface_hub import HfApi
18
 
19
- HF_TOKEN = os.getenv('HF_TOKEN')
20
- hf_api = HfApi(token=HF_TOKEN)
 
21
 
22
  # fix randomness
23
  th.manual_seed(0)
 
14
 
15
  import gradio as gr
16
 
17
+ from huggingface_hub import login
18
 
19
+ login(token='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')
20
+ # HF_TOKEN = os.getenv('HF_TOKEN')
21
+ # hf_api = HfApi(token=HF_TOKEN)
22
 
23
  # fix randomness
24
  th.manual_seed(0)