afondiel commited on
Commit
af1a89a
1 Parent(s): cf8ef53

update env vars

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,11 +19,9 @@ warnings.filterwarnings("ignore", category=UserWarning, message=".*?Your .*? set
19
 
20
 
21
  # private repo
22
- from dotenv import load_dotenv
23
- load_dotenv()
24
  token = os.getenv("HF_TOKEN")
25
  repo_id = "afondiel/image-colorizer-deoldify"
26
- repo_type = "space" # Specify that the repo type is 'space'
27
 
28
  # Download the snapshot from the space repository
29
  snapshot_folder = snapshot_download(repo_id=repo_id, repo_type=repo_type, token=token)
@@ -71,4 +69,6 @@ demo = gr.Interface(
71
  )
72
 
73
  # Launch the demo
74
- demo.launch()
 
 
 
19
 
20
 
21
  # private repo
 
 
22
  token = os.getenv("HF_TOKEN")
23
  repo_id = "afondiel/image-colorizer-deoldify"
24
+ repo_type = "space"
25
 
26
  # Download the snapshot from the space repository
27
  snapshot_folder = snapshot_download(repo_id=repo_id, repo_type=repo_type, token=token)
 
69
  )
70
 
71
  # Launch the demo
72
+
73
+ if __name__ == "__main__":
74
+ demo.launch()