Spaces:
Paused
Paused
Kunpeng Song
commited on
Commit
•
36357c6
1
Parent(s):
aee4dbf
ready
Browse files
app.py
CHANGED
@@ -14,8 +14,6 @@ os.environ["CUDA_VISIBLE_DEVICES"]="0"
|
|
14 |
title = "MoMA"
|
15 |
description = "This model has to run on GPU. By default, we load the model with 4-bit quantization to make it fit in smaller hardwares."
|
16 |
|
17 |
-
article = "<p style='text-align: center'><a href='https://news.machinelearning.sg/posts/beautiful_profile_pics_remove_background_image_with_deeplabv3/'>Blog</a> | <a href='https://github.com/eugenesiow/practical-ml'>Github Repo</a></p>"
|
18 |
-
|
19 |
def MoMA_demo(rgb, subject, prompt, strength, seed):
|
20 |
seed = int(seed) if seed else 0
|
21 |
try:
|
@@ -48,7 +46,6 @@ gr.Interface(
|
|
48 |
gr.Image(type="pil", label="Output"),
|
49 |
title=title,
|
50 |
description=description,
|
51 |
-
article=article,
|
52 |
examples=[["example_images/newImages/3.jpg",'car','A car in autumn with falling leaves.',1.0,"6"],["example_images/newImages/3.jpg",'car','A wooden sculpture of a car on a table.',0.4,"4"],["example_images/newImages/2.jpg",'car','A car on a city road with green trees and buildings.',1.0,"4"],["example_images/newImages/03.jpg",'cat','A cat at the Grand Canyon.',1.0,"2"],["example_images/newImages/02.jpg",'dog','A dog in a spring garden with flowers.',1.0,"6"],["example_images/newImages/1.jpeg",'bird','A bird in spring with flowers.',1.0,"1"],["example_images/newImages/17.jpg",'robot','A robot in autumn mountain and lake.',1,"5"]],
|
53 |
allow_flagging='never'
|
54 |
).launch(debug=False)
|
|
|
14 |
title = "MoMA"
|
15 |
description = "This model has to run on GPU. By default, we load the model with 4-bit quantization to make it fit in smaller hardwares."
|
16 |
|
|
|
|
|
17 |
def MoMA_demo(rgb, subject, prompt, strength, seed):
|
18 |
seed = int(seed) if seed else 0
|
19 |
try:
|
|
|
46 |
gr.Image(type="pil", label="Output"),
|
47 |
title=title,
|
48 |
description=description,
|
|
|
49 |
examples=[["example_images/newImages/3.jpg",'car','A car in autumn with falling leaves.',1.0,"6"],["example_images/newImages/3.jpg",'car','A wooden sculpture of a car on a table.',0.4,"4"],["example_images/newImages/2.jpg",'car','A car on a city road with green trees and buildings.',1.0,"4"],["example_images/newImages/03.jpg",'cat','A cat at the Grand Canyon.',1.0,"2"],["example_images/newImages/02.jpg",'dog','A dog in a spring garden with flowers.',1.0,"6"],["example_images/newImages/1.jpeg",'bird','A bird in spring with flowers.',1.0,"1"],["example_images/newImages/17.jpg",'robot','A robot in autumn mountain and lake.',1,"5"]],
|
50 |
allow_flagging='never'
|
51 |
).launch(debug=False)
|