PrepAI commited on
Commit
0ea152c
·
verified ·
1 Parent(s): f369d1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def get_response_message(config):
80
  def generate_questions(model_name, user_level, num_questions, question_type, language, explanation_language, context,
81
  learning_outcomes, mode):
82
  if mode == "Reviewing" and not context.strip():
83
- return {"error": "Với chế độ Reviewing, Context không được để trống."}
84
 
85
  config = {
86
  "model_name": model_name,
 
80
  def generate_questions(model_name, user_level, num_questions, question_type, language, explanation_language, context,
81
  learning_outcomes, mode):
82
  if mode == "Reviewing" and not context.strip():
83
+ return {"error": "Với chế độ `revision`, `context` không được để trống."}
84
 
85
  config = {
86
  "model_name": model_name,