diff --git a/README.md b/README.md index 9eb78ff..eb5375e 100644 --- a/README.md +++ b/README.md @@ -14,38 +14,11 @@ Powered by SAM 3 and multimodal large models, it enables high-fidelity reconstru Python License CUDA - WeChat GitHub stars

--- -

Try It Now!

-

- - Try Online Demo - -

- -

- 👆 Click above or https://editbanana.anxin6.cn/ to try Edit Banana online! Upload an image or pdf, get editable DrawIO (XML) or PPTX in seconds. - Please note: Our GitHub repository currently trails behind our web-based service. For the most up-to-date features and performance, we recommend using our web platform. -

- -## 💬 Join WeChat Group - -Welcome to join our WeChat group to discuss and exchange ideas! Scan the QR code below to join: - -

- WeChat Group QR Code -
- Scan to join the Edit Banana community -

- -> 💡 If the QR code has expired, please submit an [Issue](https://github.com/XiangjianYi/Image2DrawIO/issues) to request an updated one. - ---- - ## 📸 Effect Demonstration ### High-Definition Input-Output Comparison (3 Typical Scenarios) To demonstrate the high-fidelity conversion effect, we provides one-to-one comparisons between 3 scenarios of "original static formats" and "editable reconstruction results". All elements can be individually dragged, styled, and modified. diff --git a/server_pa.py b/server_pa.py index d48a41c..36b2e4e 100644 --- a/server_pa.py +++ b/server_pa.py @@ -14,6 +14,7 @@ sys.path.insert(0, PROJECT_ROOT) from fastapi import FastAPI, File, UploadFile, HTTPException +from fastapi.responses import HTMLResponse from fastapi.middleware.cors import CORSMiddleware import uvicorn @@ -37,9 +38,39 @@ def health(): return {"status": "ok"} -@app.get("/") +@app.get("/", response_class=HTMLResponse) def root(): - return {"service": "Edit Banana", "docs": "/docs"} + return """ + + + + + Edit Banana — Universal Content Re-Editor + + + +
+

Edit Banana

+

Universal Content Re-Editor: Make the Uneditable, Editable. Powered by SAM 3 and multimodal large models.

+ API Documentation +
+ + +""" @app.post("/convert")