Davichick commited on
Commit
47477ec
·
verified ·
1 Parent(s): fe55fe7

fix: idle ring restored on generate/next, loading arc breathes+spins, no center dot

Browse files
Files changed (1) hide show
  1. app.py +7 -12
app.py CHANGED
@@ -76,11 +76,11 @@ def get_more_like_this(user_role, user_sector, current_question):
76
 
77
  def get_interview_question_and_clear(*args):
78
  question = get_interview_question(*args)
79
- return question, "", "", ""
80
 
81
  def get_more_like_this_and_clear(*args):
82
  question = get_more_like_this(*args)
83
- return question, "", "", ""
84
 
85
 
86
  def format_feedback_html(raw_text: str) -> str:
@@ -595,13 +595,13 @@ LOADING_HTML = """
595
  style="position:absolute;top:0;left:0;">
596
  <circle cx="60" cy="60" r="48" fill="none" stroke="#21262d" stroke-width="5"/>
597
  </svg>
598
- <!-- Spinning arc -->
599
  <svg width="120" height="120" viewBox="0 0 120 120"
600
  style="position:absolute;top:0;left:0;
601
- animation:if-spin 1.2s linear infinite;">
602
  <circle cx="60" cy="60" r="48" fill="none"
603
- stroke="url(#teal-grad)" stroke-width="5"
604
- stroke-dasharray="80 220" stroke-linecap="round"/>
605
  <defs>
606
  <linearGradient id="teal-grad" x1="0%" y1="0%" x2="100%" y2="100%">
607
  <stop offset="0%" stop-color="#0d9488"/>
@@ -609,14 +609,9 @@ LOADING_HTML = """
609
  </linearGradient>
610
  </defs>
611
  </svg>
612
- <!-- Center dot pulse -->
613
- <div style="position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
614
- width:14px;height:14px;border-radius:50%;background:#14b8a6;
615
- animation:if-pulse 1.2s ease-in-out infinite;"></div>
616
  </div>
617
  <p style="color:#14b8a6;font-size:0.88em;margin-top:20px;text-align:center;
618
- font-family:Inter,sans-serif;font-weight:600;letter-spacing:0.04em;
619
- animation:if-breathe 1.8s ease-in-out infinite;">
620
  Analyzing your answer...
621
  </p>
622
  </div>
 
76
 
77
  def get_interview_question_and_clear(*args):
78
  question = get_interview_question(*args)
79
+ return question, "", IDLE_HTML, ""
80
 
81
  def get_more_like_this_and_clear(*args):
82
  question = get_more_like_this(*args)
83
+ return question, "", IDLE_HTML, ""
84
 
85
 
86
  def format_feedback_html(raw_text: str) -> str:
 
595
  style="position:absolute;top:0;left:0;">
596
  <circle cx="60" cy="60" r="48" fill="none" stroke="#21262d" stroke-width="5"/>
597
  </svg>
598
+ <!-- Spinning + breathing arc -->
599
  <svg width="120" height="120" viewBox="0 0 120 120"
600
  style="position:absolute;top:0;left:0;
601
+ animation:if-spin 1.2s linear infinite, if-breathe 2s ease-in-out infinite;">
602
  <circle cx="60" cy="60" r="48" fill="none"
603
+ stroke="url(#teal-grad)" stroke-width="7"
604
+ stroke-dasharray="90 210" stroke-linecap="round"/>
605
  <defs>
606
  <linearGradient id="teal-grad" x1="0%" y1="0%" x2="100%" y2="100%">
607
  <stop offset="0%" stop-color="#0d9488"/>
 
609
  </linearGradient>
610
  </defs>
611
  </svg>
 
 
 
 
612
  </div>
613
  <p style="color:#14b8a6;font-size:0.88em;margin-top:20px;text-align:center;
614
+ font-family:Inter,sans-serif;font-weight:600;letter-spacing:0.04em;">
 
615
  Analyzing your answer...
616
  </p>
617
  </div>