GlobalBusinessAdvisors's picture
Create main.py
59801df verified
raw
history blame
239 Bytes
from fastapi import FastAPI
from ui.gradio_ui import create_ui
app = FastAPI()
@app.on_event("startup")
def startup_event():
create_ui()
@app.get("/")
def read_root():
return {"message": "EcoPropertyRetrofitGPT API is running"}