Wauplin HF staff commited on
Commit
e627b7f
·
1 Parent(s): 3531f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from pathlib import Path
2
 
3
  import gradio as gr
@@ -5,9 +6,9 @@ import gradio as gr
5
  from app_1M_image import get_demo as get_demo_1M_image
6
  from app_image import get_demo as get_demo_image
7
  from app_json import get_demo as get_demo_json
8
- from huggingface_hub import logging
9
-
10
 
 
11
  logging.set_verbosity_debug()
12
 
13
 
 
1
+ import os
2
  from pathlib import Path
3
 
4
  import gradio as gr
 
6
  from app_1M_image import get_demo as get_demo_1M_image
7
  from app_image import get_demo as get_demo_image
8
  from app_json import get_demo as get_demo_json
9
+ from huggingface_hub import logging, login
 
10
 
11
+ login(token=os.getenv("HF_TOKEN"), write_permission=True)
12
  logging.set_verbosity_debug()
13
 
14