Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,12 +100,13 @@ def multi_condition_generate_image(prompt, subject_img, spatial_img, height, wid
|
|
| 100 |
return image
|
| 101 |
|
| 102 |
# Define the Gradio interface components
|
| 103 |
-
control_types = ["
|
| 104 |
style_loras = ["None", "Simple_Sketch", "Text_Poster", "Vector_Style"]
|
| 105 |
|
| 106 |
# Example data
|
| 107 |
single_examples = [
|
| 108 |
["A SKS in the library", Image.open("./test_imgs/subject1.png"), None, 768, 768, 5, "subject", "None"],
|
|
|
|
| 109 |
["In a picturesque village, a narrow cobblestone street with rustic stone buildings, colorful blinds, and lush green spaces, a cartoon man drawn with simple lines and solid colors stands in the foreground, wearing a red shirt, beige work pants, and brown shoes, carrying a strap on his shoulder. The scene features warm and enticing colors, a pleasant fusion of nature and architecture, and the camera's perspective on the street clearly shows the charming and quaint environment., Integrating elements of reality and cartoon.", None, Image.open("./test_imgs/spatial1.png"), 768, 768, 1, "pose", "Vector_Style"],
|
| 110 |
]
|
| 111 |
multi_examples = [
|
|
|
|
| 100 |
return image
|
| 101 |
|
| 102 |
# Define the Gradio interface components
|
| 103 |
+
control_types = ["pose", "subject", "inpainting"]
|
| 104 |
style_loras = ["None", "Simple_Sketch", "Text_Poster", "Vector_Style"]
|
| 105 |
|
| 106 |
# Example data
|
| 107 |
single_examples = [
|
| 108 |
["A SKS in the library", Image.open("./test_imgs/subject1.png"), None, 768, 768, 5, "subject", "None"],
|
| 109 |
+
["sketched style,A joyful girl with balloons floats above a city wearing a hat and striped pants", None, Image.open("./test_imgs/spatial0.png"), 768, 512, 42, "pose", "Simple_Sketch"]
|
| 110 |
["In a picturesque village, a narrow cobblestone street with rustic stone buildings, colorful blinds, and lush green spaces, a cartoon man drawn with simple lines and solid colors stands in the foreground, wearing a red shirt, beige work pants, and brown shoes, carrying a strap on his shoulder. The scene features warm and enticing colors, a pleasant fusion of nature and architecture, and the camera's perspective on the street clearly shows the charming and quaint environment., Integrating elements of reality and cartoon.", None, Image.open("./test_imgs/spatial1.png"), 768, 768, 1, "pose", "Vector_Style"],
|
| 111 |
]
|
| 112 |
multi_examples = [
|