astrosbd commited on
Commit
6a1d0e6
·
verified ·
1 Parent(s): 3f3ce46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
 
2
  import gradio as gr
3
  import numpy as np
 
4
 
5
  # Import all classes needed by checkpoints (must be in __main__ namespace)
6
  from models.swins import *
@@ -12,6 +13,7 @@ from inference import DTDPredictor
12
 
13
  # Initialize predictor
14
  print("Loading model...")
 
15
 
16
 
17
  model_path = hf_hub_download(
 
1
 
2
  import gradio as gr
3
  import numpy as np
4
+ import os
5
 
6
  # Import all classes needed by checkpoints (must be in __main__ namespace)
7
  from models.swins import *
 
13
 
14
  # Initialize predictor
15
  print("Loading model...")
16
+ hf_token = os.environ.get("HF_TOKEN")
17
 
18
 
19
  model_path = hf_hub_download(