Spaces:
Runtime error
Runtime error
simpler english
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def generate_questions(input_topic, num_questions):
|
|
30 |
Generates EFL questions based on the input topic
|
31 |
"""
|
32 |
|
33 |
-
prompt=f"Generate {num_questions} simple questions in English only for an EFL (English as a Foreign Language) based on the following topic: {input_topic}"
|
34 |
|
35 |
response = client.chat.completions.create(
|
36 |
|
@@ -49,7 +49,7 @@ def generate_questions(input_topic, num_questions):
|
|
49 |
with gr.Blocks() as app:
|
50 |
with gr.Column():
|
51 |
gr.Markdown("### EFL Question Generator")
|
52 |
-
input_text = gr.Textbox(label="Topic", lines=1, placeholder="Type or paste your topic here...", value="
|
53 |
num_questions_dropdown = gr.Dropdown(label="Number of Questions", choices=[5, 10, 15, 20], value=5)
|
54 |
output_questions = gr.Textbox(label="Generated Questions", lines=5)
|
55 |
generate_btn = gr.Button("Generate Questions")
|
|
|
30 |
Generates EFL questions based on the input topic
|
31 |
"""
|
32 |
|
33 |
+
prompt=f"Generate {num_questions} simple questions in English only for an EFL (English as a Foreign Language) student based on the following topic: {input_topic}"
|
34 |
|
35 |
response = client.chat.completions.create(
|
36 |
|
|
|
49 |
with gr.Blocks() as app:
|
50 |
with gr.Column():
|
51 |
gr.Markdown("### EFL Question Generator")
|
52 |
+
input_text = gr.Textbox(label="Topic", lines=1, placeholder="Type or paste your topic here...", value="Hobbies")
|
53 |
num_questions_dropdown = gr.Dropdown(label="Number of Questions", choices=[5, 10, 15, 20], value=5)
|
54 |
output_questions = gr.Textbox(label="Generated Questions", lines=5)
|
55 |
generate_btn = gr.Button("Generate Questions")
|