Spaces:
Running
Running
Revert "force rebuild"
Browse filesThis reverts commit cc3b3f81b4d923a64dde8d9f9d8f0253ed45ec77.
- py_backend/app/main.py +4 -12
- py_backend/static/index.html +14 -15
py_backend/app/main.py
CHANGED
|
@@ -65,18 +65,10 @@ async def health():
|
|
| 65 |
@app.get("/", include_in_schema=False, response_class=HTMLResponse)
|
| 66 |
def root():
|
| 67 |
return """<!doctype html>
|
| 68 |
-
<
|
| 69 |
-
<
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
<meta http-equiv="refresh" content="0;url=/app/">
|
| 73 |
-
</head>
|
| 74 |
-
<body>
|
| 75 |
-
<h1>PromptAid Vision</h1>
|
| 76 |
-
<p>Redirecting to app...</p>
|
| 77 |
-
<p><a href="/app/">Click here if not redirected automatically</a></p>
|
| 78 |
-
</body>
|
| 79 |
-
</html>"""
|
| 80 |
|
| 81 |
# Static file serving - must come AFTER API routes
|
| 82 |
if os.path.exists("/app"):
|
|
|
|
| 65 |
@app.get("/", include_in_schema=False, response_class=HTMLResponse)
|
| 66 |
def root():
|
| 67 |
return """<!doctype html>
|
| 68 |
+
<title>PromptAid Vision</title>
|
| 69 |
+
<h1>PromptAid Vision</h1>
|
| 70 |
+
<p>OK</p>
|
| 71 |
+
<p><a href="/app/">Open UI</a> • <a href="/docs">API Docs</a></p>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
# Static file serving - must come AFTER API routes
|
| 74 |
if os.path.exists("/app"):
|
py_backend/static/index.html
CHANGED
|
@@ -1,15 +1,14 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
-
<title>
|
| 8 |
-
<
|
| 9 |
-
|
| 10 |
-
</head>
|
| 11 |
-
<body>
|
| 12 |
-
<div id="root"></div>
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
</html>
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<link rel="icon" type="image/svg+xml" href="/app/vite.svg" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>Vite + React + TS</title>
|
| 8 |
+
<script type="module" crossorigin src="/app/assets/index-UhwP7SYq.js"></script>
|
| 9 |
+
<link rel="stylesheet" crossorigin href="/app/assets/index-CnrYqrbA.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<div id="root"></div>
|
| 13 |
+
</body>
|
| 14 |
+
</html>
|
|
|