|
|
@ -148,7 +148,8 @@ public class StuPythonController {
|
|
|
|
public ResultEntity comment(@RequestBody JSONObject text) {
|
|
|
|
public ResultEntity comment(@RequestBody JSONObject text) {
|
|
|
|
// System.out.println(text);
|
|
|
|
// System.out.println(text);
|
|
|
|
String testText = text.getString("text");
|
|
|
|
String testText = text.getString("text");
|
|
|
|
String code = "# 导入所需依赖\n" +
|
|
|
|
String code = "# -*- coding: utf-8 -*-\n" +
|
|
|
|
|
|
|
|
"# 导入所需依赖\n" +
|
|
|
|
"import pandas as pd\n" +
|
|
|
|
"import pandas as pd\n" +
|
|
|
|
"import paddle\n" +
|
|
|
|
"import paddle\n" +
|
|
|
|
"from paddlenlp.transformers import SkepTokenizer, SkepModel\n" +
|
|
|
|
"from paddlenlp.transformers import SkepTokenizer, SkepModel\n" +
|
|
|
|