Hi,
any idea how to fix that button that it will fit nicely like the one above it?
Could you please tell me what I have missed?
here is my code:
with gr.Blocks(title = 'Switcher') as switches_ver:
gr.Markdown('Welcome to IPBlocker')
with gr.Tab(label = 'IPBlocker'):
with gr.Row():
ips_to_block = gr.Textbox(label = "IPs", lines = 10, placeholder=('Please fill Ips to block'))
output_textbox = gr.Textbox(label = "Results", lines=10)
with gr.Row():
block_btn = gr.Button('Block')
#output_file = gr.File('fortigate.txt')
block_btn.click(fn=block_ip, inputs = ips_to_block, outputs = output_textbox)
with gr.Tab(label = 'Switcher'):
with gr.Row():
with gr.Column():
switch_box = gr.Textbox(label = 'Switches', lines = 10, placeholder='Please fill switches IPs...')
show_ver = gr.Button('Show current switches version')
output_textbox = gr.Textbox(label='Results',lines = 10)
with gr.Row():
upgrade_ver = gr.Button('Upgrade selected switches')
output_file = gr.File(['switches_good_results.txt', 'switches_bad_results.txt'])
show_ver.click(fn=switch_ver, inputs = switch_box, outputs = [output_textbox, output_file])
upgrade_ver.click(fn=block_ip, inputs = ips_to_block, outputs=[output_textbox, output_file])
Thank you!