Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import spaces
|
3 |
import torch
|
4 |
from diffusers import AutoencoderKL, TCDScheduler
|
5 |
from diffusers.models.model_loading_utils import load_state_dict
|
@@ -52,7 +52,7 @@ def can_expand(source_width, source_height, target_width, target_height, alignme
|
|
52 |
return False
|
53 |
return True
|
54 |
|
55 |
-
@spaces.GPU(duration=24)
|
56 |
def infer(image, width, height, overlap_width, num_inference_steps, resize_option, custom_resize_size, prompt_input=None, alignment="Middle"):
|
57 |
source = image
|
58 |
target_size = (width, height)
|
|
|
1 |
import gradio as gr
|
2 |
+
# import spaces
|
3 |
import torch
|
4 |
from diffusers import AutoencoderKL, TCDScheduler
|
5 |
from diffusers.models.model_loading_utils import load_state_dict
|
|
|
52 |
return False
|
53 |
return True
|
54 |
|
55 |
+
# @spaces.GPU(duration=24)
|
56 |
def infer(image, width, height, overlap_width, num_inference_steps, resize_option, custom_resize_size, prompt_input=None, alignment="Middle"):
|
57 |
source = image
|
58 |
target_size = (width, height)
|