Spaces:
Runtime error
Runtime error
farrosalferro24
commited on
Commit
β’
7e9e370
1
Parent(s):
e3af33e
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,8 @@ config = GeckoConfig.from_pretrained(model,
|
|
56 |
print_keyword=print_keyword)
|
57 |
processor = GeckoProcessor.from_pretrained(model, config=config, use_keyword=True, cropping_method=cropping_method, crop_size=crop_size)
|
58 |
model = GeckoForConditionalGeneration.from_pretrained(
|
59 |
-
model, config=config
|
|
|
60 |
model.load_text_encoder(processor)
|
61 |
|
62 |
@spaces.GPU
|
|
|
56 |
print_keyword=print_keyword)
|
57 |
processor = GeckoProcessor.from_pretrained(model, config=config, use_keyword=True, cropping_method=cropping_method, crop_size=crop_size)
|
58 |
model = GeckoForConditionalGeneration.from_pretrained(
|
59 |
+
model, config=config, torch_dtype=torch_dtype,
|
60 |
+
attn_implementation=attn_implementation, device_map=device_map)
|
61 |
model.load_text_encoder(processor)
|
62 |
|
63 |
@spaces.GPU
|