vinith17 commited on
Commit
5d1f2a8
·
1 Parent(s): ee58e44

chore: drop Vercel serverless config (HF Spaces is canonical)

Browse files

- Remove vercel.json and api/index.py so Git pushes do not trigger Vercel builds
- Always use repo-local runs/ for checkpoints (remove VERCEL env branch in config)

Made-with: Cursor

Files changed (4) hide show
  1. .gitignore +1 -1
  2. api/index.py +0 -9
  3. config.py +1 -4
  4. vercel.json +0 -15
.gitignore CHANGED
@@ -34,7 +34,7 @@ history.json
34
  .islstudio/
35
  .vibecheck/
36
 
37
- # Vercel
38
  .vercel
39
 
40
  # Backups
 
34
  .islstudio/
35
  .vibecheck/
36
 
37
+ # Vercel (ignore local CLI metadata if present)
38
  .vercel
39
 
40
  # Backups
api/index.py DELETED
@@ -1,9 +0,0 @@
1
- import sys
2
- import os
3
-
4
- # Add root directory to path so imports work identically to running locally
5
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
6
-
7
- from app import app
8
-
9
- # Vercel needs the flask app to be exposed exactly like this in api/index.py
 
 
 
 
 
 
 
 
 
 
config.py CHANGED
@@ -49,10 +49,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
49
  EPISODES_FILE = os.path.join(BASE_DIR, "episodes.json")
50
  ANSWERS_FILE = os.path.join(BASE_DIR, "answers.json")
51
 
52
- if os.environ.get("VERCEL"):
53
- RUNS_DIR = "/tmp/runs"
54
- else:
55
- RUNS_DIR = os.path.join(BASE_DIR, "runs")
56
  CHECKPOINT_FILE = os.path.join(RUNS_DIR, "checkpoint.json")
57
 
58
  # ---------------------------------------------------------------------------
 
49
  EPISODES_FILE = os.path.join(BASE_DIR, "episodes.json")
50
  ANSWERS_FILE = os.path.join(BASE_DIR, "answers.json")
51
 
52
+ RUNS_DIR = os.path.join(BASE_DIR, "runs")
 
 
 
53
  CHECKPOINT_FILE = os.path.join(RUNS_DIR, "checkpoint.json")
54
 
55
  # ---------------------------------------------------------------------------
vercel.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "version": 2,
3
- "builds": [
4
- {
5
- "src": "api/index.py",
6
- "use": "@vercel/python"
7
- }
8
- ],
9
- "routes": [
10
- {
11
- "src": "/(.*)",
12
- "dest": "api/index.py"
13
- }
14
- ]
15
- }