Spaces:
Build error
Build error
Commit
·
52d0ddb
1
Parent(s):
0fd8d75
add wandb login
Browse files- inference.py +2 -1
inference.py
CHANGED
|
@@ -13,10 +13,11 @@ from tqdm.notebook import trange
|
|
| 13 |
from dalle_mini import DalleBart, DalleBartProcessor
|
| 14 |
from transformers import CLIPProcessor, FlaxCLIPModel
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
# Model to generate image tokens
|
| 18 |
MODEL = "fedorajuandy/dalle-mini/model-jhhchemc:v11"
|
| 19 |
-
MODEL_COMMIT_ID = None
|
| 20 |
|
| 21 |
# VQGAN to decode image tokens
|
| 22 |
VQGAN_REPO = "dalle-mini/vqgan_imagenet_f16_16384"
|
|
|
|
| 13 |
from dalle_mini import DalleBart, DalleBartProcessor
|
| 14 |
from transformers import CLIPProcessor, FlaxCLIPModel
|
| 15 |
|
| 16 |
+
wandb.login(key=os.environ["wandb"])
|
| 17 |
|
| 18 |
# Model to generate image tokens
|
| 19 |
MODEL = "fedorajuandy/dalle-mini/model-jhhchemc:v11"
|
| 20 |
+
MODEL_COMMIT_ID = "None"
|
| 21 |
|
| 22 |
# VQGAN to decode image tokens
|
| 23 |
VQGAN_REPO = "dalle-mini/vqgan_imagenet_f16_16384"
|