Spaces:
Sleeping
Sleeping
init
Browse files
app.py
CHANGED
|
@@ -70,9 +70,8 @@ def get_response_message(config):
|
|
| 70 |
try:
|
| 71 |
response = requests.post(MODEL2SERVICE[config["model_name"]], headers=headers, json=data)
|
| 72 |
return response.json()["data"]
|
| 73 |
-
|
| 74 |
except:
|
| 75 |
-
return {"message": f"Hiện tại chúng tôi chưa hỗ trợ mô hình {config[
|
| 76 |
|
| 77 |
def generate_questions(model_name, user_level, num_questions, question_type, language, explanation_language, context, learning_outcomes, mode):
|
| 78 |
if mode == "Reviewing" and not context.strip():
|
|
|
|
| 70 |
try:
|
| 71 |
response = requests.post(MODEL2SERVICE[config["model_name"]], headers=headers, json=data)
|
| 72 |
return response.json()["data"]
|
|
|
|
| 73 |
except:
|
| 74 |
+
return {"message": f"Hiện tại chúng tôi chưa hỗ trợ mô hình {config['model_name']}"}
|
| 75 |
|
| 76 |
def generate_questions(model_name, user_level, num_questions, question_type, language, explanation_language, context, learning_outcomes, mode):
|
| 77 |
if mode == "Reviewing" and not context.strip():
|