feat: tabs system

This commit is contained in:
Artemy 2023-04-16 08:51:33 +03:00
parent 5b33b2cd66
commit ca3d0969bc
6 changed files with 92 additions and 47 deletions

18
tabs/Stacking/app.py Normal file
View file

@ -0,0 +1,18 @@
import gradio as gr
from processing.stacking import stacking
with gr.Blocks() as app:
gr.Markdown("Stacking images.")
with gr.Row():
with gr.Column():
directory = gr.Text(
placeholder="A directory with many images of the same size", lines=1, label="Directory")
methods = gr.Dropdown(
choices=["denoise", "startracks", "noise extractor", "untrack"], value="denoise", label="Method")
submit = gr.Button("Submit")
with gr.Column():
output = gr.Gallery()
submit.click(stacking, inputs=[
directory, methods], outputs=[output])