phucpx commited on
Commit
93aa45d
·
1 Parent(s): e495a4f

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -103,12 +103,12 @@ iface = gr.Interface(
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"),
106
- gr.Dropdown(["English", "Vietnamese"], label="Language"),
107
- gr.Dropdown(["English", "Vietnamese"], label="Explanation Language"),
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(["Reviewing", "Practicing"], label="Mode")
112
  ],
113
  outputs=gr.JSON(label="Generated Questions"),
114
  title="Learning Content Generation",
 
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"),
106
+ gr.Dropdown(["English", "Vietnamese"], label="Language", value="English"),
107
+ gr.Dropdown(["English", "Vietnamese"], label="Explanation Language", value="English"),
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(["Reviewing", "Practicing"], label="Mode", value="Practicing")
112
  ],
113
  outputs=gr.JSON(label="Generated Questions"),
114
  title="Learning Content Generation",