Oysiyl commited on
Commit
f5d659d
·
verified ·
1 Parent(s): 3a3deeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
7
  from PIL import Image
8
  import numpy as np
9
 
10
- # import spaces
11
 
12
 
13
  from huggingface_hub import hf_hub_download
@@ -159,7 +159,7 @@ valid_models = [
159
 
160
  model_management.load_models_gpu(valid_models)
161
 
162
- # @spaces.GPU(duration=60)
163
  def generate_qr_code(prompt: str, url: str):
164
  if "https://" in url:
165
  url = url.replace("https://", "")
 
7
  from PIL import Image
8
  import numpy as np
9
 
10
+ import spaces
11
 
12
 
13
  from huggingface_hub import hf_hub_download
 
159
 
160
  model_management.load_models_gpu(valid_models)
161
 
162
+ @spaces.GPU(duration=60)
163
  def generate_qr_code(prompt: str, url: str):
164
  if "https://" in url:
165
  url = url.replace("https://", "")