Moving spaces at top for error resolving "CUDA has been initialized before importing the spaces package."
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import torch
|
| 2 |
from diffusers import Flux2Pipeline
|
| 3 |
from huggingface_hub import get_token
|
|
@@ -6,7 +7,6 @@ import io
|
|
| 6 |
import gradio as gr
|
| 7 |
from PIL import Image
|
| 8 |
import os
|
| 9 |
-
import spaces # Import spaces for Zero GPU
|
| 10 |
|
| 11 |
# Configuration
|
| 12 |
repo_id = "diffusers/FLUX.2-dev-bnb-4bit"
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import torch
|
| 3 |
from diffusers import Flux2Pipeline
|
| 4 |
from huggingface_hub import get_token
|
|
|
|
| 7 |
import gradio as gr
|
| 8 |
from PIL import Image
|
| 9 |
import os
|
|
|
|
| 10 |
|
| 11 |
# Configuration
|
| 12 |
repo_id = "diffusers/FLUX.2-dev-bnb-4bit"
|