Commit 6cd446fa authored by Janez K's avatar Janez K

dodal triplet extraction widget

parent 9bca17ca
This diff is collapsed.
......@@ -253,8 +253,8 @@ def streaming_triplet_extraction(input_dict,widget,stream=None):
text = input_dict['text']
response = client.TripletExtraction(text=text)
output_dict = []
output_dict['triplets'] = str(reponse.TripletExtractionResult)
output_dict = {}
output_dict['triplets'] = str(response.TripletExtractionResult)
return output_dict
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment