Skip to content
Snippets Groups Projects
Commit bb469c26 authored by Marcus Johansson's avatar Marcus Johansson Committed by Marcus Johansson
Browse files

Issue #3502138: ImageClassification explorer is broken

parent d1703746
No related branches found
No related tags found
1 merge request!428Issue #3502138: ImageClassification explorer is broken
Pipeline #405434 passed
......@@ -95,7 +95,7 @@ final class ImageClassificationGenerator extends AiApiExplorerPluginBase {
$form = $this->getFormTemplate($form, 'image-classify-response');
$form['left']['file'] = [
$form['left']['image'] = [
'#type' => 'file',
'#accept' => '.jpg, .jpeg, .png',
'#title' => $this->t('Upload your image here. When submitted, your provider will generate a classification. Please note that each query counts against your API usage if your provider is a paid provider.'),
......@@ -177,7 +177,7 @@ final class ImageClassificationGenerator extends AiApiExplorerPluginBase {
':label' => $row->getLabel(),
]),
$this->t('<em>:score</em>', [
':label' => $row->getConfidenceScore(),
':score' => $row->getConfidenceScore(),
]),
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment