sayakpaul HF Staff commited on
Commit
ee4246b
·
1 Parent(s): 13352a6
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
15
  pipe = DiffusionPipeline.from_pretrained("black-forest-labs/Flux.1-Dev", torch_dtype=dtype).to(device)
16
 
17
 
18
- @spaces.GPU(duration=1500)
19
  def push_to_hub(repo_id, filename, oauth_token: gr.OAuthToken, progress=gr.Progress(track_tqdm=True)):
20
  if not filename.endswith(".pt2"):
21
  raise NotImplementedError("The filename must end with a `.pt2` extension.")
 
15
  pipe = DiffusionPipeline.from_pretrained("black-forest-labs/Flux.1-Dev", torch_dtype=dtype).to(device)
16
 
17
 
18
+ @spaces.GPU(duration=1200)
19
  def push_to_hub(repo_id, filename, oauth_token: gr.OAuthToken, progress=gr.Progress(track_tqdm=True)):
20
  if not filename.endswith(".pt2"):
21
  raise NotImplementedError("The filename must end with a `.pt2` extension.")