File size: 400 Bytes
5a590f9
 
3c9db94
 
 
5a590f9
 
 
 
1
2
3
4
5
6
7
8
9
10
from pathlib import Path
import gradio as gr
from grote.app import make_demo

if __name__ == "__main__":
    current_file_path = Path(__file__).resolve()
    img_path = (current_file_path.parent / ".." / "assets" / "img").resolve()
    gr.set_static_paths(paths=[img_path])
    make_demo().queue(api_open=False).launch(show_api=False, allowed_paths=[img_path], favicon_path=img_path / "favicon.ico")