Download app.py from elieh/ops: direct link, hf CLI and curl.
- Browser
- Download file 615 Bytes
-
https://huggingface.co/spaces/elieh/ops/resolve/main/app.py
- Command line
-
hf download hf://spaces/elieh/ops/app.py
-
curl -L -o app.py https://huggingface.co/spaces/elieh/ops/resolve/main/app.py
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) | |