Spaces:
Running
Running
force rebuild
Browse files- py_backend/app/main.py +12 -4
- py_backend/static/index.html +15 -14
py_backend/app/main.py
CHANGED
|
@@ -65,10 +65,18 @@ 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 |
|
| 73 |
# Static file serving - must come AFTER API routes
|
| 74 |
if os.path.exists("/app"):
|
|
|
|
| 65 |
@app.get("/", include_in_schema=False, response_class=HTMLResponse)
|
| 66 |
def root():
|
| 67 |
return """<!doctype html>
|
| 68 |
+
<html>
|
| 69 |
+
<head>
|
| 70 |
+
<meta charset="UTF-8">
|
| 71 |
+
<title>PromptAid Vision</title>
|
| 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"):
|
py_backend/static/index.html
CHANGED
|
@@ -1,14 +1,15 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<link rel="icon" type="image/svg+xml" href="/
|
| 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 |
-
</
|
|
|
|
|
|
| 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>PromptAid Vision</title>
|
| 8 |
+
<link rel="stylesheet" href="/assets/index-CnrYqrbA.css">
|
| 9 |
+
<!-- Force rebuild - MapDetailsPage updated with three-part analysis display -->
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<div id="root"></div>
|
| 13 |
+
<script type="module" src="/assets/index-UhwP7SYq.js"></script>
|
| 14 |
+
</body>
|
| 15 |
+
</html>
|