mikonvergence commited on
Commit
e631c22
·
1 Parent(s): 7977444

Update interface (rearrangement)

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,9 +14,6 @@ def create_demo():
14
  gr.Markdown('# 🎭 theaTRON')
15
  gr.Markdown('<img src="file/data/image-only.png">')
16
  gr.Markdown('Type what you want to see and the app will create images with the faces in the input while preserving body pose. Should work for multiple humans too!')
17
-
18
- prompt = gr.Textbox(value="Astronauts, photograph inside the ISS International Space Station corridor", label="Prompt:")
19
- n_prompt = gr.Textbox(value="", label="Negative Prompt: Avoid these features in the image...")
20
 
21
  with gr.Group():
22
  with gr.Box():
@@ -38,6 +35,7 @@ def create_demo():
38
  tool=None,
39
  elem_classes="image_upload",
40
  label='Webcam')
 
41
  send_button = gr.Button(label='Generate', value='Generate')
42
 
43
  with gr.Column() as output_step:
@@ -49,11 +47,13 @@ def create_demo():
49
  object_fit="contain",
50
  height="auto")
51
  with gr.Accordion('Settings', open=False):
 
52
  num_steps = gr.Slider(label='Steps',
53
  minimum=1,
54
  maximum=100,
55
  value=25,
56
  step=1)
 
57
  original_resolution=gr.Checkbox(value=False,
58
  label="Preserve Resolution",
59
  info="Prevent Downscaling to 512 pixels (default)")
 
14
  gr.Markdown('# 🎭 theaTRON')
15
  gr.Markdown('<img src="file/data/image-only.png">')
16
  gr.Markdown('Type what you want to see and the app will create images with the faces in the input while preserving body pose. Should work for multiple humans too!')
 
 
 
17
 
18
  with gr.Group():
19
  with gr.Box():
 
35
  tool=None,
36
  elem_classes="image_upload",
37
  label='Webcam')
38
+ prompt = gr.Textbox(value="Astronaut, photograph inside the ISS International Space Station corridor", label="Prompt:")
39
  send_button = gr.Button(label='Generate', value='Generate')
40
 
41
  with gr.Column() as output_step:
 
47
  object_fit="contain",
48
  height="auto")
49
  with gr.Accordion('Settings', open=False):
50
+
51
  num_steps = gr.Slider(label='Steps',
52
  minimum=1,
53
  maximum=100,
54
  value=25,
55
  step=1)
56
+ n_prompt = gr.Textbox(value="", label="Negative Prompt: Avoid these features in the image...")
57
  original_resolution=gr.Checkbox(value=False,
58
  label="Preserve Resolution",
59
  info="Prevent Downscaling to 512 pixels (default)")