amitagh commited on
Commit
374c828
·
verified ·
1 Parent(s): 7927aa4
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -74,10 +74,12 @@ def clear_quiz():
74
  return [[], ""] + [gr.update(visible=False, value=None) for _ in range(MAX_ANS_COMP)] + [""]
75
 
76
  with gr.Blocks() as app:
77
- gr.Markdown("# QuizWhiz: Your Quiz Master")
78
- gr.Markdown("Welcome to the ultimate trivia challenge! Whether you're a curious kid or a lifelong learner, this app is designed to test your knowledge and keep your mind sharp.")
79
- gr.Markdown("Select Kid school grade and number of questions to generate. Choose Any as grade for above 8th Grade or Adults.")
80
- gr.Markdown("Press Generate to generate quiz questions. Press Submit once you are done answering. Press Clear to clear the questions.")
 
 
81
  with gr.Row():
82
  grade = gr.Dropdown(choices=[5, 6, 7, 8, "Any"], label="Grade", value=6)
83
  num_questions = gr.Dropdown(choices=[5, 10, 15, 20], label="Number of Questions", value=5)
 
74
  return [[], ""] + [gr.update(visible=False, value=None) for _ in range(MAX_ANS_COMP)] + [""]
75
 
76
  with gr.Blocks() as app:
77
+ with gr.Row():
78
+ gr.Markdown("# QuizWhiz: Your Quiz Master")
79
+ gr.Markdown("Welcome to the ultimate trivia challenge! Whether you're a curious kid or a lifelong learner, this app is designed to test your knowledge and keep your mind sharp.")
80
+ gr.Markdown("Select Kid school grade and number of questions to generate. Choose Any as grade for above 8th Grade or Adults.")
81
+ gr.Markdown("Press Generate to generate quiz questions. Press Submit once you are done answering. Press Clear to clear the questions.")
82
+ gr.Image(value = Image.open("einstien.webp"), interactive = False, width=600, height=150)
83
  with gr.Row():
84
  grade = gr.Dropdown(choices=[5, 6, 7, 8, "Any"], label="Grade", value=6)
85
  num_questions = gr.Dropdown(choices=[5, 10, 15, 20], label="Number of Questions", value=5)