fffiloni commited on
Commit
f6c83c7
1 Parent(s): 52934f2

Update gradio_demo/app.py

Browse files
Files changed (1) hide show
  1. gradio_demo/app.py +2 -1
gradio_demo/app.py CHANGED
@@ -5,6 +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
  from PIL import Image
9
 
10
  from diffusers import DDPMScheduler
@@ -113,7 +114,7 @@ def dynamic_guidance_slider(sampling_steps):
113
  def show_final_preview(preview_row):
114
  return preview_row[-1][0]
115
 
116
- # @spaces.GPU #[uncomment to use ZeroGPU]
117
  @torch.no_grad()
118
  def instantir_restore(
119
  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
 
114
  def show_final_preview(preview_row):
115
  return preview_row[-1][0]
116
 
117
+ @spaces.GPU #[uncomment to use ZeroGPU]
118
  @torch.no_grad()
119
  def instantir_restore(
120
  lq, prompt="", steps=30, cfg_scale=7.0, guidance_end=1.0,