Spaces:
Running
Running
cocktailpeanut
commited on
Commit
•
53c30dc
1
Parent(s):
7aff61f
update
Browse files- gradio_demo/app.py +2 -2
gradio_demo/app.py
CHANGED
@@ -5,7 +5,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')
|
|
5 |
import torch
|
6 |
import numpy as np
|
7 |
import gradio as gr
|
8 |
-
import spaces
|
9 |
from PIL import Image
|
10 |
|
11 |
from diffusers import DDPMScheduler
|
@@ -118,7 +118,7 @@ def dynamic_guidance_slider(sampling_steps):
|
|
118 |
def show_final_preview(preview_row):
|
119 |
return preview_row[-1][0]
|
120 |
|
121 |
-
|
122 |
@torch.no_grad()
|
123 |
def instantir_restore(
|
124 |
lq, prompt="", steps=30, cfg_scale=7.0, guidance_end=1.0,
|
|
|
5 |
import torch
|
6 |
import numpy as np
|
7 |
import gradio as gr
|
8 |
+
#import spaces
|
9 |
from PIL import Image
|
10 |
|
11 |
from diffusers import DDPMScheduler
|
|
|
118 |
def show_final_preview(preview_row):
|
119 |
return preview_row[-1][0]
|
120 |
|
121 |
+
#@spaces.GPU(duration=70) #[uncomment to use ZeroGPU]
|
122 |
@torch.no_grad()
|
123 |
def instantir_restore(
|
124 |
lq, prompt="", steps=30, cfg_scale=7.0, guidance_end=1.0,
|