update env vars
Browse files
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"
|
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 |
-
|
|
|
|
|
|
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()
|