GlobalBusinessAdvisors
commited on
Update app/main.py
Browse files- app/main.py +0 -5
app/main.py
CHANGED
@@ -1,12 +1,7 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
from app.gradio_ui import ui
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
-
@app.on_event("startup")
|
7 |
-
async def startup_event():
|
8 |
-
ui.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
9 |
-
|
10 |
@app.get("/")
|
11 |
def read_root():
|
12 |
return {"message": "EcoPropertyRetrofitGPT API is running"}
|
|
|
1 |
from fastapi import FastAPI
|
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
|
|
|
|
|
|
|
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
return {"message": "EcoPropertyRetrofitGPT API is running"}
|