Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ pipe.safety_checker = lambda images, **kwargs: (images, [False] * len(images))
|
|
| 35 |
# Sample Prompt - "bright clean clear illustration side profile of a woman wearing pink lipstick p_nagel"
|
| 36 |
|
| 37 |
def nagelize(text):
|
| 38 |
-
prompt = "
|
| 39 |
return pipe(prompt).images[0]
|
| 40 |
|
| 41 |
#def nagelize_me(source_image):
|
|
@@ -64,10 +64,10 @@ def nagelize(text):
|
|
| 64 |
|
| 65 |
with gr.Blocks() as demo:
|
| 66 |
|
| 67 |
-
gr.Markdown("<img src=https://huggingface.co/spaces/mswhite/
|
| 68 |
output = gr.Image(label="Output").style(width=720)
|
| 69 |
-
art_to_draw = gr.Textbox(label="Prompt to Draw: e.g.
|
| 70 |
-
flashb_btn = gr.Button("
|
| 71 |
flashb_btn.click(fn=nagelize, inputs=[art_to_draw], outputs=[output])
|
| 72 |
|
| 73 |
demo.launch()
|
|
|
|
| 35 |
# Sample Prompt - "bright clean clear illustration side profile of a woman wearing pink lipstick p_nagel"
|
| 36 |
|
| 37 |
def nagelize(text):
|
| 38 |
+
prompt = "" + text
|
| 39 |
return pipe(prompt).images[0]
|
| 40 |
|
| 41 |
#def nagelize_me(source_image):
|
|
|
|
| 64 |
|
| 65 |
with gr.Blocks() as demo:
|
| 66 |
|
| 67 |
+
gr.Markdown("<img src=https://huggingface.co/spaces/mswhite/NNN/resolve/main/Emmet.jpg width=720px>")
|
| 68 |
output = gr.Image(label="Output").style(width=720)
|
| 69 |
+
art_to_draw = gr.Textbox(label="Prompt to Draw: e.g. ")
|
| 70 |
+
flashb_btn = gr.Button("Go to Legoland")
|
| 71 |
flashb_btn.click(fn=nagelize, inputs=[art_to_draw], outputs=[output])
|
| 72 |
|
| 73 |
demo.launch()
|