File size: 778 Bytes
204827e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()