coderuday21 commited on
Commit
1fc9452
·
1 Parent(s): a64e7fd

Force fresh HF deploy with version 2.2.0 and new asset cache keys

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app/main.py +2 -2
  3. templates/index.html +2 -2
Dockerfile CHANGED
@@ -19,7 +19,7 @@ COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  # Cache-bust: increment to force a fresh COPY on HF Spaces
22
- ENV APP_BUILD=3
23
 
24
  # Copy application code
25
  COPY . .
 
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  # Cache-bust: increment to force a fresh COPY on HF Spaces
22
+ ENV APP_BUILD=4
23
 
24
  # Copy application code
25
  COPY . .
app/main.py CHANGED
@@ -69,14 +69,14 @@ except Exception as e:
69
  import logging
70
  logging.getLogger("uvicorn.error").warning("Startup migration skipped: %s", e)
71
 
72
- app = FastAPI(title="AI Change Detection", version="2.1.0")
73
 
74
 
75
  @app.get("/health")
76
  def health():
77
  """Lightweight health check so Hugging Face can mark the Space as running quickly."""
78
  from datetime import datetime
79
- return {"status": "ok", "version": "2.1.0", "server_time_ist": _isoformat_ist(datetime.now(timezone.utc))}
80
 
81
 
82
  @app.on_event("startup")
 
69
  import logging
70
  logging.getLogger("uvicorn.error").warning("Startup migration skipped: %s", e)
71
 
72
+ app = FastAPI(title="AI Change Detection", version="2.2.0")
73
 
74
 
75
  @app.get("/health")
76
  def health():
77
  """Lightweight health check so Hugging Face can mark the Space as running quickly."""
78
  from datetime import datetime
79
+ return {"status": "ok", "version": "2.2.0", "server_time_ist": _isoformat_ist(datetime.now(timezone.utc))}
80
 
81
 
82
  @app.on_event("startup")
templates/index.html CHANGED
@@ -4,7 +4,7 @@
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>AI Change Detection</title>
7
- <link rel="stylesheet" href="/static/css/style.css?v=18" />
8
  </head>
9
  <body>
10
  <div class="app">
@@ -350,6 +350,6 @@
350
  </div>
351
  </div>
352
 
353
- <script src="/static/js/app.js?v=24"></script>
354
  </body>
355
  </html>
 
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>AI Change Detection</title>
7
+ <link rel="stylesheet" href="/static/css/style.css?v=19" />
8
  </head>
9
  <body>
10
  <div class="app">
 
350
  </div>
351
  </div>
352
 
353
+ <script src="/static/js/app.js?v=25"></script>
354
  </body>
355
  </html>