File size: 559 Bytes
4376584
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
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
    )