Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ if os.path.isdir(_SRC_DIR):
|
|
| 32 |
print(f"[setup] Added {_SRC_DIR} to sys.path")
|
| 33 |
|
| 34 |
import gradio as gr
|
| 35 |
-
import spaces
|
| 36 |
import torch
|
| 37 |
|
| 38 |
from diffusers import (
|
|
@@ -59,15 +59,6 @@ pipe = HeliosPyramidPipeline.from_pretrained(
|
|
| 59 |
pipe.to("cuda")
|
| 60 |
pipe.transformer.set_attention_backend("_flash_3_hub")
|
| 61 |
|
| 62 |
-
DEFAULT_NEGATIVE_PROMPT = (
|
| 63 |
-
"Bright tones, overexposed, static, blurred details, subtitles, style, works, "
|
| 64 |
-
"paintings, images, static, overall gray, worst quality, low quality, JPEG compression "
|
| 65 |
-
"residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, "
|
| 66 |
-
"deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, "
|
| 67 |
-
"three legs, many people in the background, walking backwards"
|
| 68 |
-
)
|
| 69 |
-
|
| 70 |
-
|
| 71 |
# ---------------------------------------------------------------------------
|
| 72 |
# Generation (decorated for ZeroGPU)
|
| 73 |
# ---------------------------------------------------------------------------
|
|
|
|
| 32 |
print(f"[setup] Added {_SRC_DIR} to sys.path")
|
| 33 |
|
| 34 |
import gradio as gr
|
| 35 |
+
#import spaces
|
| 36 |
import torch
|
| 37 |
|
| 38 |
from diffusers import (
|
|
|
|
| 59 |
pipe.to("cuda")
|
| 60 |
pipe.transformer.set_attention_backend("_flash_3_hub")
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
# ---------------------------------------------------------------------------
|
| 63 |
# Generation (decorated for ZeroGPU)
|
| 64 |
# ---------------------------------------------------------------------------
|