from PIL import Image
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
import random
|
3 |
import os
|
4 |
import json
|
|
|
5 |
from gradio_client import Client
|
6 |
|
7 |
MAX_ANS_COMP = 30
|
@@ -79,7 +80,7 @@ with gr.Blocks() as app:
|
|
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=
|
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)
|
|
|
2 |
import random
|
3 |
import os
|
4 |
import json
|
5 |
+
from PIL import Image
|
6 |
from gradio_client import Client
|
7 |
|
8 |
MAX_ANS_COMP = 30
|
|
|
80 |
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.")
|
81 |
gr.Markdown("Select Kid school grade and number of questions to generate. Choose Any as grade for above 8th Grade or Adults.")
|
82 |
gr.Markdown("Press Generate to generate quiz questions. Press Submit once you are done answering. Press Clear to clear the questions.")
|
83 |
+
gr.Image(value = Image.open("einstien.webp"), interactive = False, width=150, height=150)
|
84 |
with gr.Row():
|
85 |
grade = gr.Dropdown(choices=[5, 6, 7, 8, "Any"], label="Grade", value=6)
|
86 |
num_questions = gr.Dropdown(choices=[5, 10, 15, 20], label="Number of Questions", value=5)
|