GlobalBusinessAdvisors
commited on
Commit
•
6c90606
1
Parent(s):
7f662f7
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,4 @@
|
|
1 |
-
|
2 |
-
from gradio_ui import create_ui
|
3 |
|
4 |
-
|
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"}
|
|
|
1 |
+
import uvicorn
|
|
|
2 |
|
3 |
+
if __name__ == "__main__":
|
4 |
+
uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|