shivakumar2005 commited on
Commit
bf9908f
·
verified ·
1 Parent(s): b3cc9df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -5,10 +5,8 @@ from bs4 import BeautifulSoup
5
  from transformers import pipeline
6
 
7
 
8
- # Store the leaderboard file in the current working directory
9
  LEADERBOARD_FILE = "road2success_leaderboard.json"
10
 
11
- # Create the file if it doesn't exist (proper dict structure, not just list)
12
  if not os.path.exists(LEADERBOARD_FILE):
13
  with open(LEADERBOARD_FILE, "w") as f:
14
  json.dump({"scores": []}, f)
@@ -41,7 +39,7 @@ def ai_mentor_query(prompt, short_answer=True, eli5=False):
41
  return out.replace("\n", " ").strip()[:900]
42
 
43
 
44
- # ------------------ ROADMAP DATA ------------------
45
  ROADMAPS = {
46
  "Class 5": {
47
  "objective": "Spark curiosity, build number sense, foundations of reading, and light coding exposure.",
@@ -166,7 +164,6 @@ ROADMAPS = {
166
  "coding_questions": []
167
  }
168
  }
169
- # --------------------------------------------------
170
 
171
  def render_roadmap(level):
172
  info = ROADMAPS.get(level, None)
@@ -305,7 +302,6 @@ def show_leaderboard():
305
  return md
306
 
307
 
308
- # -------- UI --------
309
  GLASS_CSS = """
310
  :root {
311
  --glass-bg: rgba(255, 255, 255, 0.15);
@@ -389,10 +385,12 @@ input:focus, textarea:focus, select:focus {
389
  border-color: var(--accent);
390
  box-shadow: 0 0 12px var(--accent-glow);
391
  }
392
-
393
  .gradio-dropdown select {
394
  color: #eaf6ff;
395
- background: rgba(0, 20, 40, 0.8);
 
 
 
396
  }
397
 
398
  .gradio-markdown, .gradio-html {
 
5
  from transformers import pipeline
6
 
7
 
 
8
  LEADERBOARD_FILE = "road2success_leaderboard.json"
9
 
 
10
  if not os.path.exists(LEADERBOARD_FILE):
11
  with open(LEADERBOARD_FILE, "w") as f:
12
  json.dump({"scores": []}, f)
 
39
  return out.replace("\n", " ").strip()[:900]
40
 
41
 
42
+
43
  ROADMAPS = {
44
  "Class 5": {
45
  "objective": "Spark curiosity, build number sense, foundations of reading, and light coding exposure.",
 
164
  "coding_questions": []
165
  }
166
  }
 
167
 
168
  def render_roadmap(level):
169
  info = ROADMAPS.get(level, None)
 
302
  return md
303
 
304
 
 
305
  GLASS_CSS = """
306
  :root {
307
  --glass-bg: rgba(255, 255, 255, 0.15);
 
385
  border-color: var(--accent);
386
  box-shadow: 0 0 12px var(--accent-glow);
387
  }
 
388
  .gradio-dropdown select {
389
  color: #eaf6ff;
390
+ background-color: #0b1f3a;
391
+ border: 1px solid rgba(255, 255, 255, 0.3);
392
+ border-radius: 12px;
393
+ padding: 8px;
394
  }
395
 
396
  .gradio-markdown, .gradio-html {