Skip to content

Commit

Permalink
check pdf, set correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Apr 15, 2024
1 parent 1ac4d39 commit 11d527f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ public void run() {
ObjectId graphFileId = storeLocalFileRemote("comparison_" + label1 + "_vs_" + label2 + ".json",body.getTopic()+"-graph.json");

newText.put("userId", label1);

if (userTexts!=null) {
newText.put("studentInput", readTxtFile("tmitocar/texts/"+ label1 + ".txt-cleaned.txt"));
if (body.getType().toLowerCase().equals("application/pdf") || body.getType().toLowerCase().equals("pdf")) {
newText.put("studentInput", readTxtFile("tmitocar/texts/" + label1 + "/"+ label1 + ".txt-cleaned.txt"));
} else {
newText.put("studentInput", body.getText());
}
Expand Down

0 comments on commit 11d527f

Please sign in to comment.