import gradio as gr | |
import groovy as gv | |
print(gv.__version__) | |
from flow import flow | |
with gr.Blocks() as app: | |
task_box = gr.Textbox(label="🕺 Task", value="flow.task") | |
with gr.Row(): | |
if flow.inputs: | |
with gr.Column(scale=1): | |
for component in flow.inputs: | |
component.render() | |
with gr.Column(scale=3): | |
gr.Image(value="recording.gif") | |
def construct_prompt(*input_values): | |
return flow.task.format(*input_values) | |
if __name__ == "__main__": | |
app.launch() | |