File size: 240 Bytes
a441854
 
 
 
 
 
 
 
 
 
 
 
eec5a1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"}