albarji commited on
Commit
6320655
1 Parent(s): bce6870

Working app (at least in local)

Browse files
Files changed (1) hide show
  1. app.py +15 -7
app.py CHANGED
@@ -28,11 +28,19 @@ def generate(prompt1, prompt2, prompt3, seed):
28
  demo = gr.Interface(
29
  fn=generate,
30
  inputs=[
31
- gr.Textbox(lines=2, placeholder="Left prompt"),
32
- gr.Textbox(lines=2, placeholder="Center prompt"),
33
- gr.Textbox(lines=2, placeholder="Right prompt"),
34
- gr.Textbox(lines=1, placeholder="Random Seed"),
35
- ]
36
- outputs="image"
 
 
 
 
 
 
 
 
37
  )
38
- demo.launch()
 
28
  demo = gr.Interface(
29
  fn=generate,
30
  inputs=[
31
+ gr.Textbox(lines=2, label="Left region prompt"),
32
+ gr.Textbox(lines=2, label="Center region prompt"),
33
+ gr.Textbox(lines=2, label="Right region prompt"),
34
+ gr.Number(value=12345, precision=0),
35
+ ],
36
+ outputs="image",
37
+ examples=[
38
+ [
39
+ "A charming house in the countryside, by jakub rozalski, sunset lighting, elegant, highly detailed, smooth, sharp focus, artstation, stunning masterpiece",
40
+ "A dirt road in the countryside crossing pastures, by jakub rozalski, sunset lighting, elegant, highly detailed, smooth, sharp focus, artstation, stunning masterpiece",
41
+ "An old and rusty giant robot lying on a dirt road, by jakub rozalski, dark sunset lighting, elegant, highly detailed, smooth, sharp focus, artstation, stunning masterpiece",
42
+ 7178915308
43
+ ],
44
+ ],
45
  )
46
+ demo.launch(server_name="0.0.0.0")