merve HF staff commited on
Commit
95e98bf
1 Parent(s): 7aa50ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ model = Idefics2ForConditionalGeneration.from_pretrained(
17
  #_attn_implementation="flash_attention_2",
18
  trust_remote_code=True).to("cuda")
19
 
20
-
21
  def model_inference(
22
  image, text, decoding_strategy, temperature,
23
  max_new_tokens, repetition_penalty, top_p
 
17
  #_attn_implementation="flash_attention_2",
18
  trust_remote_code=True).to("cuda")
19
 
20
+ @spaces.GPU(duration=180)
21
  def model_inference(
22
  image, text, decoding_strategy, temperature,
23
  max_new_tokens, repetition_penalty, top_p