Spaces:
Runtime error
Runtime error
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" | |
) | |