Spaces:
Running
on
Zero
Running
on
Zero
up
Browse files
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=
|
| 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.")
|