abidlabs HF Staff commited on
Commit
5562654
·
verified ·
1 Parent(s): de0d130

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -7,8 +7,11 @@ from flow import flow
7
  with gr.Blocks() as app:
8
  task_box = gr.Textbox(label="🕺 Groovy Flow", value="flow.task")
9
  with gr.Row():
10
- for component in flow.inputs:
11
- component.render()
 
 
 
12
 
13
  @gr.on(
14
  triggers=[app.load] + [input.change for input in flow.inputs],
@@ -19,8 +22,6 @@ with gr.Blocks() as app:
19
  def construct_prompt(*input_values):
20
  return flow.task.format(*input_values)
21
 
22
- with gr.Row(scale=5):
23
- gr.Image()
24
 
25
  if __name__ == "__main__":
26
  app.launch()
 
7
  with gr.Blocks() as app:
8
  task_box = gr.Textbox(label="🕺 Groovy Flow", value="flow.task")
9
  with gr.Row():
10
+ with gr.Column():
11
+ for component in flow.inputs:
12
+ component.render()
13
+ with gr.Column():
14
+ gr.Image()
15
 
16
  @gr.on(
17
  triggers=[app.load] + [input.change for input in flow.inputs],
 
22
  def construct_prompt(*input_values):
23
  return flow.task.format(*input_values)
24
 
 
 
25
 
26
  if __name__ == "__main__":
27
  app.launch()