Spaces:
Runtime error
Runtime error
JarvisLabs
commited on
Commit
•
c490d71
1
Parent(s):
632da23
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ MAX_IMAGE_SIZE = 2048
|
|
37 |
OUTPUT_DIR = os.getenv("OUTPUT_DIR", "./outputs")
|
38 |
|
39 |
|
40 |
-
|
41 |
def generate_replicate(
|
42 |
prompt: str,
|
43 |
negative_prompt: str = "",
|
@@ -278,5 +278,4 @@ with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo:
|
|
278 |
api_name="run",
|
279 |
)
|
280 |
|
281 |
-
|
282 |
-
demo.queue(max_size=20).launch(debug=IS_COLAB, share=IS_COLAB)
|
|
|
37 |
OUTPUT_DIR = os.getenv("OUTPUT_DIR", "./outputs")
|
38 |
|
39 |
|
40 |
+
@spaces.CPU
|
41 |
def generate_replicate(
|
42 |
prompt: str,
|
43 |
negative_prompt: str = "",
|
|
|
278 |
api_name="run",
|
279 |
)
|
280 |
|
281 |
+
demo.queue(max_size=20).launch(debug=IS_COLAB, share=IS_COLAB)
|
|