Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
from PIL import Image
|
8 |
import numpy as np
|
9 |
|
10 |
-
|
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 |
-
|
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://", "")
|