Spaces:
Runtime error
Runtime error
rodrigomasini
commited on
Commit
•
3488ac9
1
Parent(s):
c1ecabd
Update app.py
Browse files
app.py
CHANGED
@@ -1945,72 +1945,7 @@ with gr.Blocks(css=css) as demo:
|
|
1945 |
).then(process_generation, inputs=[sd_type,model_type,files, num_steps,style, Ip_Adapter_Strength,style_strength_ratio, guidance_scale, seed_, sa32_, sa64_, id_length_, general_prompt, negative_prompt, prompt_array,G_height,G_width,comic_type], outputs=out_image
|
1946 |
).then(fn=set_text_finished,outputs = generated_information)
|
1947 |
|
1948 |
-
|
1949 |
-
gr.Examples(
|
1950 |
-
examples=[
|
1951 |
-
[0,0.5,0.5,2,"a man, wearing black suit",
|
1952 |
-
"bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs",
|
1953 |
-
array2string(["at home, read new paper #at home, The newspaper says there is a treasure house in the forest.",
|
1954 |
-
"on the road, near the forest",
|
1955 |
-
"[NC] The car on the road, near the forest #He drives to the forest in search of treasure.",
|
1956 |
-
"[NC]A tiger appeared in the forest, at night ",
|
1957 |
-
"very frightened, open mouth, in the forest, at night",
|
1958 |
-
"running very fast, in the forest, at night",
|
1959 |
-
"[NC] A house in the forest, at night #Suddenly, he discovers the treasure house!",
|
1960 |
-
"in the house filled with treasure, laughing, at night #He is overjoyed inside the house."
|
1961 |
-
]),
|
1962 |
-
"Comic book","Only Using Textual Description",get_image_path_list('./examples/taylor'),768,768
|
1963 |
-
],
|
1964 |
-
[0,0.5,0.5,2,"a policeman img, wearing a white shirt",
|
1965 |
-
"bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs",
|
1966 |
-
array2string(["Directing traffic on the road. ",
|
1967 |
-
"walking on the streets.",
|
1968 |
-
"Chasing a man on the street.",
|
1969 |
-
"At the police station.",
|
1970 |
-
]),
|
1971 |
-
"Japanese Anime","Using Ref Images",get_image_path_list('./examples/lecun'),768,768
|
1972 |
-
],
|
1973 |
-
[1,0.5,0.5,3,"a woman img, wearing a white T-shirt, blue loose hair",
|
1974 |
-
"bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs",
|
1975 |
-
array2string(["wake up in the bed",
|
1976 |
-
"have breakfast",
|
1977 |
-
"is on the road, go to company",
|
1978 |
-
"work in the company",
|
1979 |
-
"Take a walk next to the company at noon",
|
1980 |
-
"lying in bed at night"]),
|
1981 |
-
"Japanese Anime", "Using Ref Images",get_image_path_list('./examples/taylor'),768,768
|
1982 |
-
],
|
1983 |
-
[0,0.5,0.5,3,"a man, wearing black jacket",
|
1984 |
-
"bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs",
|
1985 |
-
array2string(["wake up in the bed",
|
1986 |
-
"have breakfast",
|
1987 |
-
"is on the road, go to the company, close look",
|
1988 |
-
"work in the company",
|
1989 |
-
"laughing happily",
|
1990 |
-
"lying in bed at night"
|
1991 |
-
]),
|
1992 |
-
"Japanese Anime","Only Using Textual Description",get_image_path_list('./examples/taylor'),768,768
|
1993 |
-
],
|
1994 |
-
[0,0.3,0.5,3,"a girl, wearing white shirt, black skirt, black tie, yellow hair",
|
1995 |
-
"bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs",
|
1996 |
-
array2string([
|
1997 |
-
"at home #at home, began to go to drawing",
|
1998 |
-
"sitting alone on a park bench.",
|
1999 |
-
"reading a book on a park bench.",
|
2000 |
-
"[NC]A squirrel approaches, peeking over the bench. ",
|
2001 |
-
"look around in the park. # She looks around and enjoys the beauty of nature.",
|
2002 |
-
"[NC]leaf falls from the tree, landing on the sketchbook.",
|
2003 |
-
"picks up the leaf, examining its details closely.",
|
2004 |
-
"[NC]The brown squirrel appear.",
|
2005 |
-
"is very happy # She is very happy to see the squirrel again",
|
2006 |
-
"[NC]The brown squirrel takes the cracker and scampers up a tree. # She gives the squirrel cracker"]),
|
2007 |
-
"Japanese Anime","Only Using Textual Description",get_image_path_list('./examples/taylor'),768,768
|
2008 |
-
]
|
2009 |
-
],
|
2010 |
-
inputs=[seed_, sa32_, sa64_, id_length_, general_prompt, negative_prompt, prompt_array,style,model_type,files,G_height,G_width],
|
2011 |
-
label='😺 Examples 😺',
|
2012 |
-
)
|
2013 |
-
gr.Markdown(article)
|
2014 |
|
2015 |
|
2016 |
demo.launch()
|
|
|
1945 |
).then(process_generation, inputs=[sd_type,model_type,files, num_steps,style, Ip_Adapter_Strength,style_strength_ratio, guidance_scale, seed_, sa32_, sa64_, id_length_, general_prompt, negative_prompt, prompt_array,G_height,G_width,comic_type], outputs=out_image
|
1946 |
).then(fn=set_text_finished,outputs = generated_information)
|
1947 |
|
1948 |
+
#gr.Markdown(article)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1949 |
|
1950 |
|
1951 |
demo.launch()
|