CtB-AI-img-gen / app.py
Andre
“Update”
ef908f6
raw
history blame
428 Bytes
# app.py ANDRE
import sys
import os
# Add the src folder to the Python path
# Solves all problems w subfolders - option2
src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "src"))
if src_path not in sys.path:
sys.path.append(src_path)
# Import gradio_interface
from gradio_interface import demo
from config.config import api_token
if __name__ == "__main__":
# Launch the Gradio app
demo.launch()