GlobalBusinessAdvisors
commited on
Commit
•
a441854
1
Parent(s):
1d9adf1
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
from ui.gradio_ui import create_ui
|
3 |
+
|
4 |
+
app = FastAPI()
|
5 |
+
|
6 |
+
@app.on_event("startup")
|
7 |
+
def startup_event():
|
8 |
+
create_ui()
|
9 |
+
|
10 |
+
@app.get("/")
|
11 |
+
def read_root():
|
12 |
+
return {"message": "EcoPropertyRetrofitGPT API is running"}
|