Spaces:
Build error
Build error
import numpy as np | |
import gradio as gr | |
import boxes | |
import convert | |
bloco = gr.Blocks() | |
with bloco: | |
with gr.Tabs(): | |
with gr.TabItem(boxes.title): | |
gr.Markdown(boxes.description) | |
inputs = boxes.load_inputs() | |
text_button = gr.Button("Calcular") | |
outputs = gr.TextArea(lines=1, label=boxes.output_label) | |
text_button.click(boxes.execute, inputs=inputs, outputs=outputs) | |
with gr.TabItem(convert.title): | |
gr.Markdown(convert.description) | |
inputs = convert.load_inputs() | |
text_button = gr.Button("Calcular") | |
outputs = gr.TextArea(lines=1, label=convert.output_label) | |
text_button.click(convert.execute, inputs=inputs, outputs=outputs) | |
bloco.launch() |