Spaces:
Runtime error
Runtime error
change token
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import inspect
|
|
|
2 |
from typing import List, Optional, Union
|
3 |
import numpy as np
|
4 |
import torch
|
@@ -10,7 +11,8 @@ import requests
|
|
10 |
from io import BytesIO
|
11 |
from huggingface_hub import login
|
12 |
|
13 |
-
|
|
|
14 |
|
15 |
def image_grid(imgs, rows, cols):
|
16 |
assert len(imgs) == rows*cols
|
|
|
1 |
import inspect
|
2 |
+
import os
|
3 |
from typing import List, Optional, Union
|
4 |
import numpy as np
|
5 |
import torch
|
|
|
11 |
from io import BytesIO
|
12 |
from huggingface_hub import login
|
13 |
|
14 |
+
token = os.getenv("WRITE_TOKEN")
|
15 |
+
login(token, True)
|
16 |
|
17 |
def image_grid(imgs, rows, cols):
|
18 |
assert len(imgs) == rows*cols
|