Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ import json
|
|
13 |
import gradio as gr
|
14 |
import numpy as np
|
15 |
from PIL import Image
|
16 |
-
import spaces
|
17 |
import torch
|
18 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
19 |
import os
|
@@ -88,7 +88,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
88 |
return seed
|
89 |
|
90 |
# Defining the main generation function with GPU acceleration
|
91 |
-
|
92 |
def generate(
|
93 |
prompt: str,
|
94 |
negative_prompt: str = "",
|
|
|
13 |
import gradio as gr
|
14 |
import numpy as np
|
15 |
from PIL import Image
|
16 |
+
#import spaces
|
17 |
import torch
|
18 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
19 |
import os
|
|
|
88 |
return seed
|
89 |
|
90 |
# Defining the main generation function with GPU acceleration
|
91 |
+
#@spaces.GPU(duration=60, enable_queue=True)
|
92 |
def generate(
|
93 |
prompt: str,
|
94 |
negative_prompt: str = "",
|