Skip to content

Commit

Permalink
Merge pull request #29 from Knox-AAU/add-authors
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
JonasGLund99 authored Dec 13, 2023
2 parents 8ac0cef + 66a4e4a commit 55c3273
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
- name: Run tests
run: |
echo "Testing..."
python -m unittest || exit 1
python -m unittest -b || exit 1
2 changes: 1 addition & 1 deletion relation_extraction/multilingual/llm_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def send_request(request):
HEADERS = {"Access-Authorization": os.getenv("ACCESS_SECRET")}
response = requests.post(url=LLMMessenger.API_endpoint(), json=request, headers=HEADERS)

# # Put the location of to the GGUF model that you've download from HuggingFace here
# # Put the location of to the GGUF model that you've download from HuggingFace (https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGUF/resolve/main/llama-2-7b-chat.Q2_K.gguf?download=true) here
# model_path = "./relation_extraction/multilingual/llama-2-7b-chat.Q2_K.gguf"

# # Create a llama model
Expand Down
6 changes: 3 additions & 3 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def do_triple_construction():
post_data = request.get_data().decode('utf-8')
post_json = json.loads(post_data)

RelationExtractor.begin_extraction(post_json)
entity_type_classification(post_json)
RelationExtractor.begin_extraction(post_json) # Relation Extraction
entity_type_classification(post_json) # Concept Linking

message = "Post request was successfully processed. Relation extraction and concept linking completed."
message = "Post request was successfully processed. Relation Extraction and Concept Linking completed."
return jsonify(message=message), 200

except Exception as e:
Expand Down

0 comments on commit 55c3273

Please sign in to comment.