ops / app.py
elieh's picture
working
9a60274
Raw History Blame Contribute Delete
615 Bytes
import gradio as gr
from apps.image_captioning import create_interface as create_image_captioning
from apps.metadata import create_interface as create_metadata_editor
def create_app() -> gr.Blocks:
with gr.Blocks(title="Rawa Ops Dashboard") as app:
gr.Markdown("Rawa Ops")
with gr.Tabs():
with gr.Tab("Image Captioning"):
create_image_captioning()
with gr.Tab("Metadata Editor"):
create_metadata_editor()
return app
demo = create_app()
demo.launch(auth=[("noor", "altekai")], share=True, ssr_mode=False)