Spaces:
Sleeping
Sleeping
phucpx
commited on
Commit
·
84d8aab
1
Parent(s):
a997ce6
Add application file
Browse files
app.py
CHANGED
@@ -102,13 +102,13 @@ iface = gr.Interface(
|
|
102 |
gr.Dropdown(LIST_MODELS, label="Model Usage", value=LIST_MODELS[0]),
|
103 |
gr.Dropdown(LIST_USER_LEVEL, label="User Level", value=LIST_USER_LEVEL[0]),
|
104 |
gr.Number(value=5, label="Number of Questions"),
|
105 |
-
gr.Dropdown(["
|
106 |
-
gr.Dropdown(["
|
107 |
-
gr.Dropdown(["
|
108 |
gr.Textbox(lines=5, placeholder="Enter context here...",
|
109 |
label="Context (Lesson content or Reading comprehension passage)"),
|
110 |
gr.Textbox(lines=5, value=template_los, label="Learning Outcomes"),
|
111 |
-
gr.Dropdown(["
|
112 |
],
|
113 |
outputs=gr.JSON(label="Generated Questions"),
|
114 |
title="Learning Content Generation",
|
|
|
102 |
gr.Dropdown(LIST_MODELS, label="Model Usage", value=LIST_MODELS[0]),
|
103 |
gr.Dropdown(LIST_USER_LEVEL, label="User Level", value=LIST_USER_LEVEL[0]),
|
104 |
gr.Number(value=5, label="Number of Questions"),
|
105 |
+
gr.Dropdown(["short_answer", "single_choice", "multiple_choice"], label="Question Type", value="single_choice"),
|
106 |
+
gr.Dropdown(["en", "vi"], label="Language", value="en"),
|
107 |
+
gr.Dropdown(["en", "vi"], label="Explanation Language", value="en"),
|
108 |
gr.Textbox(lines=5, placeholder="Enter context here...",
|
109 |
label="Context (Lesson content or Reading comprehension passage)"),
|
110 |
gr.Textbox(lines=5, value=template_los, label="Learning Outcomes"),
|
111 |
+
gr.Dropdown(["revision", "practice"], label="Mode", value="practice")
|
112 |
],
|
113 |
outputs=gr.JSON(label="Generated Questions"),
|
114 |
title="Learning Content Generation",
|