Spaces:
Runtime error
Runtime error
farrosalferro24
commited on
Commit
β’
175e27a
1
Parent(s):
3cb7491
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,7 @@ 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 |
-
attn_implementation=attn_implementation, device_map=device_map)
|
61 |
model.load_text_encoder(processor)
|
62 |
|
63 |
@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)
|
|
|
60 |
model.load_text_encoder(processor)
|
61 |
|
62 |
@spaces.GPU
|