Spaces:
Sleeping
Sleeping
Update anime_app.py
Browse files- anime_app.py +5 -3
anime_app.py
CHANGED
|
@@ -11,10 +11,11 @@ from settings import (
|
|
| 11 |
)
|
| 12 |
from utils import randomize_seed_fn
|
| 13 |
# if gr.NO_RELOAD:
|
| 14 |
-
base_model = "nyxia/AAM-AnyLoRA-Anime-Mix"
|
| 15 |
-
model = Model(base_model_id=base_model, task_name="NormalBae")
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
def auto_process_image(image, prompt):
|
| 20 |
a_prompt="anime style, cartoon, drawing, 2D anime, illustration, cartoon"
|
|
@@ -130,4 +131,5 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {visibility: hidden}") as dem
|
|
| 130 |
# image.change(auto_process_image, inputs=[image, prompt], outputs=[result])
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
|
|
|
| 133 |
demo.queue(max_size=1).launch()
|
|
|
|
| 11 |
)
|
| 12 |
from utils import randomize_seed_fn
|
| 13 |
# if gr.NO_RELOAD:
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
@spaces.GPU
|
| 16 |
+
def init():
|
| 17 |
+
base_model = "nyxia/AAM-AnyLoRA-Anime-Mix"
|
| 18 |
+
model = Model(base_model_id=base_model, task_name="NormalBae")
|
| 19 |
|
| 20 |
def auto_process_image(image, prompt):
|
| 21 |
a_prompt="anime style, cartoon, drawing, 2D anime, illustration, cartoon"
|
|
|
|
| 131 |
# image.change(auto_process_image, inputs=[image, prompt], outputs=[result])
|
| 132 |
|
| 133 |
if __name__ == "__main__":
|
| 134 |
+
init()
|
| 135 |
demo.queue(max_size=1).launch()
|