Download app.py from Teoman21/Lab-5: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/Teoman21/Lab-5/resolve/main/app.py
- Command line
-
hf download hf://spaces/Teoman21/Lab-5/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Teoman21/Lab-5/resolve/main/app.py
559 Bytes
| """ | |
| Gradio interface for the Mosaic Generator. | |
| Allows users to upload images, adjust parameters, and generate mosaic-style images. | |
| """ | |
| import gradio as gr | |
| import numpy as np | |
| from PIL import Image | |
| import time | |
| import os | |
| from typing import Tuple, Dict, List | |
| from src.gradio_interface import create_interface | |
| # Create the interface (this will be available for Gradio auto-reload) | |
| demo = create_interface() | |
| if __name__ == "__main__": | |
| # Launch the interface | |
| demo.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| share=True | |
| ) | |