kfahn commited on
Commit
a950a05
1 Parent(s): 7e42bcd

Update app.py

Browse files

eliminate examples temporarily again

Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -75,16 +75,15 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
75
  """)
76
  with gr.Row():
77
  with gr.Column():
78
- prompts = gr.Textbox(label="Prompt")
79
- negative_prompts = gr.Textbox(label="Negative Prompt")
80
  conditioning_image = gr.Image(label="Conditioning Image")
81
-
82
  with gr.Column():
83
  #keypoint_tool = addp5sketch(sketch_url)
84
  keypoint_tool = gr.HTML(lines)
85
-
86
- submit_btn = gr.Button("Submit")
87
- submit_btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery", examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
88
 
89
  #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
90
  #examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
 
75
  """)
76
  with gr.Row():
77
  with gr.Column():
78
+ prompts = gr.Textbox(label="Prompt", value="best quality, extremely detailed")
79
+ negative_prompts = gr.Textbox(label="Negative Prompt", value="lowres, bad anatomy, missing ears, missing paws")
80
  conditioning_image = gr.Image(label="Conditioning Image")
81
+ run_btn = gr.Button("Run")
82
  with gr.Column():
83
  #keypoint_tool = addp5sketch(sketch_url)
84
  keypoint_tool = gr.HTML(lines)
85
+
86
+ run_btn.click(fn=infer, inputs = ["prompts", "negative_prompts", "conditioning_image"], outputs = "gallery")
 
87
 
88
  #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
89
  #examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])