Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
d = "cuda" if torch.cuda.is_available else False
|
4 |
|
5 |
if d:
|
6 |
import spaces
|
7 |
|
8 |
-
import torch
|
9 |
from diffusers import FluxPipeline
|
10 |
|
11 |
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16).to(d)
|
|
|
1 |
import gradio as gr
|
2 |
+
import torch
|
3 |
|
4 |
d = "cuda" if torch.cuda.is_available else False
|
5 |
|
6 |
if d:
|
7 |
import spaces
|
8 |
|
|
|
9 |
from diffusers import FluxPipeline
|
10 |
|
11 |
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16).to(d)
|