Upload app.py with huggingface_hub
Browse files
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 |
-
|
11 |
-
component.
|
|
|
|
|
|
|
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()
|