mswhite commited on
Commit
d3b1876
·
verified ·
1 Parent(s): 8c6375a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = "nnn " + text
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/miamivice/resolve/main/miami.jpg width=720px>")
68
  output = gr.Image(label="Output").style(width=720)
69
- art_to_draw = gr.Textbox(label="Prompt to Draw: e.g. woman with red hair")
70
- flashb_btn = gr.Button("Flashback to the 80s")
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()