Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"# Set the model name from Hugging Face and task type\n",
"# open ai detector model - developed by open ai https://github.com/openai/gpt-2-output-dataset/tree/master/detector\n",
"hf_model_id='roberta-base-openai-detector'\n",
"tm = TransformerModel(hf_model_id, \"text_classification\")\n",
"tm = TransformerModel(model_id=hf_model_id, task_type=\"text_classification\")\n",
"\n",
"#set the modelID as it is named in Elasticsearch\n",
"es_model_id = tm.elasticsearch_model_id()\n",
Expand Down Expand Up @@ -121,7 +121,7 @@
"# Set the model name from Hugging Face and task type\n",
"# sentence-transformers model\n",
"hf_model_id='sentence-transformers/all-mpnet-base-v2'\n",
"tm = TransformerModel(hf_model_id, \"text_embedding\")\n",
"tm = TransformerModel(model_id=hf_model_id, task_type=\"text_embedding\")\n",
"\n",
"#set the modelID as it is named in Elasticsearch\n",
"es_model_id = tm.elasticsearch_model_id()\n",
Expand Down