Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import numpy as np
|
@@ -108,6 +109,7 @@ def load_b_loras(content_b_lora, style_b_lora):
|
|
108 |
|
109 |
return prepared_prompt
|
110 |
|
|
|
111 |
def main(content_b_lora, style_b_lora, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
112 |
|
113 |
if randomize_seed:
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import numpy as np
|
|
|
109 |
|
110 |
return prepared_prompt
|
111 |
|
112 |
+
@spaces.GPU()
|
113 |
def main(content_b_lora, style_b_lora, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
114 |
|
115 |
if randomize_seed:
|