Download app.py from nnibras/LAB4: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/nnibras/LAB4/resolve/main/app.py
- Command line
-
hf download hf://spaces/nnibras/LAB4/app.py
-
curl -L -o app.py https://huggingface.co/spaces/nnibras/LAB4/resolve/main/app.py
540 Bytes
| from src.gradio_interface import generate_anaglyph | |
| import gradio as gr | |
| iface = gr.Interface( | |
| fn=generate_anaglyph, | |
| inputs=[ | |
| gr.Image(type="filepath", label="Upload Person Image"), | |
| gr.Image(type="filepath", label="Upload Left Stereoscopic Image"), | |
| gr.Image(type="filepath", label="Upload Right Stereoscopic Image"), | |
| gr.Dropdown(["", "close", "medium", "far"], label="Depth Level"), | |
| ], | |
| outputs=gr.Image(label="Anaglyph Image"), | |
| ) | |
| if __name__ == "__main__": | |
| iface.launch() | |