Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import json
|
|
6 |
import gradio as gr
|
7 |
import numpy as np
|
8 |
from PIL import Image
|
9 |
-
import spaces
|
10 |
import torch
|
11 |
from diffusers import DiffusionPipeline
|
12 |
|
@@ -49,7 +49,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
49 |
seed = random.randint(0, MAX_SEED)
|
50 |
return seed
|
51 |
|
52 |
-
@spaces.GPU(duration=20, queue=False)
|
53 |
def generate(
|
54 |
prompt: str,
|
55 |
negative_prompt: str = "",
|
|
|
6 |
import gradio as gr
|
7 |
import numpy as np
|
8 |
from PIL import Image
|
9 |
+
# import spaces
|
10 |
import torch
|
11 |
from diffusers import DiffusionPipeline
|
12 |
|
|
|
49 |
seed = random.randint(0, MAX_SEED)
|
50 |
return seed
|
51 |
|
52 |
+
# @spaces.GPU(duration=20, queue=False)
|
53 |
def generate(
|
54 |
prompt: str,
|
55 |
negative_prompt: str = "",
|