Spaces:
Sleeping
Sleeping
Download app.py from Saptarshi003/SnapScript: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/spaces/Saptarshi003/SnapScript/resolve/main/app.py
- Command line
-
hf download hf://spaces/Saptarshi003/SnapScript/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Saptarshi003/SnapScript/resolve/main/app.py
250 Bytes
| import gradio as gr | |
| from src.pipeline.predict import generate_caption | |
| demo = gr.Interface(fn=generate_caption, | |
| inputs=gr.Image(), | |
| outputs=[gr.Textbox(label="Generated Caption", lines=3)], | |
| ) | |
| demo.launch() |