Fix 404 routing
Browse files
app.py
CHANGED
|
@@ -951,8 +951,6 @@ app.add_middleware(
|
|
| 951 |
allow_headers=["*"],
|
| 952 |
)
|
| 953 |
|
| 954 |
-
app = gr.mount_gradio_app(app, demo, path="")
|
| 955 |
-
|
| 956 |
@app.get("/api/status")
|
| 957 |
def hello():
|
| 958 |
return JSONResponse({"status": "ok"})
|
|
@@ -1088,4 +1086,6 @@ def api_plot_tornado(axis: str = "storm_relative_helicity", use_trustnet: bool =
|
|
| 1088 |
fig.savefig(buf, format="png")
|
| 1089 |
buf.seek(0)
|
| 1090 |
img_str = base64.b64encode(buf.read()).decode("utf-8")
|
| 1091 |
-
return JSONResponse({"plot": img_str})
|
|
|
|
|
|
|
|
|
| 951 |
allow_headers=["*"],
|
| 952 |
)
|
| 953 |
|
|
|
|
|
|
|
| 954 |
@app.get("/api/status")
|
| 955 |
def hello():
|
| 956 |
return JSONResponse({"status": "ok"})
|
|
|
|
| 1086 |
fig.savefig(buf, format="png")
|
| 1087 |
buf.seek(0)
|
| 1088 |
img_str = base64.b64encode(buf.read()).decode("utf-8")
|
| 1089 |
+
return JSONResponse({"plot": img_str})
|
| 1090 |
+
|
| 1091 |
+
app = gr.mount_gradio_app(app, demo, path="")
|