Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
from diffusers import StableDiffusionPipeline
|
|
|
|
| 1 |
+
try:
|
| 2 |
+
import spaces
|
| 3 |
+
SPACES_AVAILABLE = True
|
| 4 |
+
print("✅ Spaces available - ZeroGPU mode")
|
| 5 |
+
except ImportError:
|
| 6 |
+
SPACES_AVAILABLE = False
|
| 7 |
+
print("⚠️ Spaces not available - running in regular mode")
|
| 8 |
+
|
| 9 |
import gradio as gr
|
| 10 |
import torch
|
| 11 |
from diffusers import StableDiffusionPipeline
|