capradeepgujaran commited on
Commit
1a42569
1 Parent(s): 5584f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -547,7 +547,7 @@ def create_quiz_interface():
547
 
548
  with gr.Tabs() as tabs:
549
  # Profile Setup Tab
550
- with gr.Tab("📋 Step 1: Profile Setup"):
551
  with gr.Row():
552
  name = gr.Textbox(label="Full Name", placeholder="Enter your full name")
553
  email = gr.Textbox(label="Email", placeholder="Enter your email")
@@ -573,7 +573,7 @@ def create_quiz_interface():
573
  generate_btn = gr.Button("Generate Assessment", variant="primary", size="lg")
574
 
575
  # Assessment Tab
576
- with gr.Tab("📝 Step 2: Take Assessment") as assessment_tab:
577
  with gr.Column(visible=True) as question_box:
578
  # Question section
579
  with gr.Group():
@@ -625,7 +625,7 @@ def create_quiz_interface():
625
  )
626
 
627
  # Certification Tab
628
- with gr.Tab("🎓 Step 3: Get Certified"):
629
  score_display = gr.Number(label="Your Score")
630
  result_message = gr.Markdown("")
631
  course_name = gr.Textbox(
@@ -727,7 +727,7 @@ def create_quiz_interface():
727
 
728
  def view_certificate():
729
  """Navigate to certificate tab"""
730
- return gr.update(selected=2)
731
 
732
  def on_submit(questions, answers, current_idx, current_answer):
733
  final_answers = list(answers)
 
547
 
548
  with gr.Tabs() as tabs:
549
  # Profile Setup Tab
550
+ with gr.Tab(id=1,"📋 Step 1: Profile Setup"):
551
  with gr.Row():
552
  name = gr.Textbox(label="Full Name", placeholder="Enter your full name")
553
  email = gr.Textbox(label="Email", placeholder="Enter your email")
 
573
  generate_btn = gr.Button("Generate Assessment", variant="primary", size="lg")
574
 
575
  # Assessment Tab
576
+ with gr.Tab(id=2,"📝 Step 2: Take Assessment") as assessment_tab:
577
  with gr.Column(visible=True) as question_box:
578
  # Question section
579
  with gr.Group():
 
625
  )
626
 
627
  # Certification Tab
628
+ with gr.Tab(id=3,"🎓 Step 3: Get Certified"):
629
  score_display = gr.Number(label="Your Score")
630
  result_message = gr.Markdown("")
631
  course_name = gr.Textbox(
 
727
 
728
  def view_certificate():
729
  """Navigate to certificate tab"""
730
+ return gr.Tabs(selected=2)
731
 
732
  def on_submit(questions, answers, current_idx, current_answer):
733
  final_answers = list(answers)