phucpx commited on
Commit
84d8aab
·
1 Parent(s): a997ce6

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(["Short answer", "Single choice", "Multiple choice"], label="Question Type", value="Single choice"),
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",
 
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",