File size: 995 Bytes
bb16136 afe9245 bb63d9a d402cc8 acda371 e65413e 41cdf73 31a6970 2a483ac 5acb15d 41cdf73 bb16136 1a8d2e4 31a6970 1a8d2e4 e78e1d7 41cdf73 bb16136 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import gradio as gr
import os
os.system('pip install git+https://github.com/broadfield-dev/gradio_sidebar')
from gradio_sidebar import gs
with gr.Blocks(head=gs.head,css=gs.css) as app:
gr.HTML(gs.topbar)
gr.HTML(gs.leftbar)
gr.HTML(gs.rightbar)
gr.HTML("<a href='https://github.com/broadfield-dev/gradio_sidebar' style='position:fixed;top:100px;font-size:x-large;font-weight:700;'>github.com/broadfield-dev/gradio_sidebar</a>")
with gr.Group(elem_id="gs_top_control_panel"):
gr.Textbox()
gr.Slider()
gr.Image()
with gr.Group(elem_id="gs_left_control_panel"):
gr.Textbox()
gr.Textbox()
gr.Textbox()
gr.Textbox()
gr.Slider()
gr.Image()
with gr.Group(elem_id="gs_right_control_panel"):
gr.Textbox()
gr.Textbox()
gr.Textbox()
gr.Textbox()
gr.Slider()
gr.Image()
gr.Chatbot()
gr.Textbox()
gr.Image()
gr.Image()
app.launch() |