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="🕺 Groovy Flow", value="flow.task") | |
with gr.Row(): | |
for component in flow.inputs: | |
component.render() | |
def construct_prompt(*input_values): | |
return flow.task.format(*input_values) | |
with gr.Row(scale=5): | |
gr.Image() | |
if __name__ == "__main__": | |
app.launch() | |