RunningYou commited on
Commit
a3e33ba
1 Parent(s): 40fd025
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +3 -3
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -86,8 +86,8 @@ description = "Inpainting Stable Diffusion <br/><b>mediapipe + Stable Diffusion<
86
 
87
 
88
  examples = [
89
- [os.path.join(os.path.dirname(__file__), "example1.png"), 'a bench in a field', 2],
90
- # [os.path.join(os.path.dirname(__file__), "example2.png"), 'a palace with many steps', 2],
91
  # [os.path.join(os.path.dirname(__file__), "example3.png"), 'a big ship parked on the shore', 2]
92
  ]
93
 
@@ -109,7 +109,7 @@ def predict2(dict, prompt, num_samples):
109
 
110
  image_input = gr.Image(source='upload', tool='sketch', type='pil')
111
  prompt = gr.Textbox(label='prompt')
112
- number = gr.Slider(1, 4, value=2, label='num_samples')
113
 
114
  greeter_1 = gr.Interface(predict1, inputs=[image_input, prompt, number], outputs=gr.Image(label='auto'))
115
  greeter_2 = gr.Interface(predict2, inputs=[image_input, prompt, number], outputs=gr.Image(label='paint'))
 
86
 
87
 
88
  examples = [
89
+ ["example1.png", 'a bench in a field', 2],
90
+ # [os.path.join(os.path.dirname(__file__), "example2.png"), 'a building with many steps', 2],
91
  # [os.path.join(os.path.dirname(__file__), "example3.png"), 'a big ship parked on the shore', 2]
92
  ]
93
 
 
109
 
110
  image_input = gr.Image(source='upload', tool='sketch', type='pil')
111
  prompt = gr.Textbox(label='prompt')
112
+ number = gr.Slider(1, 4, value= 2, label='num_samples')
113
 
114
  greeter_1 = gr.Interface(predict1, inputs=[image_input, prompt, number], outputs=gr.Image(label='auto'))
115
  greeter_2 = gr.Interface(predict2, inputs=[image_input, prompt, number], outputs=gr.Image(label='paint'))