farrosalferro24 commited on
Commit
e3af33e
β€’
1 Parent(s): 9ccc7ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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, torch_dtype=torch_dtype,
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