GlobalBusinessAdvisors
commited on
Commit
•
98e225c
1
Parent(s):
41275e0
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
-
import
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
from 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"}
|