feat: Provide alternate endpoints for submission of jobs without JSON ontology file
/ test (push) Successful in 10m9s
/ test (push) Successful in 10m9s
Workaround CleverMicro limitation ISSUES CLOSED: #10
This commit was merged in pull request #11.
This commit is contained in:
@@ -635,7 +635,12 @@ class CleverSwarmClient(object):
|
||||
files.append(("ontology", open(ontology_file, "rb")))
|
||||
|
||||
response = requests.post(
|
||||
self._base_url + "unstructured/with_ontology",
|
||||
self._base_url
|
||||
+ (
|
||||
"unstructured/with_ontology"
|
||||
if ontology_file
|
||||
else "unstructured/with_ontology_simple"
|
||||
),
|
||||
headers=headers,
|
||||
params=params,
|
||||
files=files,
|
||||
@@ -715,7 +720,12 @@ class CleverSwarmClient(object):
|
||||
files.append(("ontology", open(ontology_file, "rb")))
|
||||
|
||||
response = requests.post(
|
||||
self._base_url + "unstructured/with_wildcards",
|
||||
self._base_url
|
||||
+ (
|
||||
"unstructured/with_wildcards"
|
||||
if ontology_file
|
||||
else "unstructured/with_wildcards_simple"
|
||||
),
|
||||
headers=headers,
|
||||
params=params,
|
||||
files=files,
|
||||
|
||||
Reference in New Issue
Block a user