Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions lib/private/TaskProcessing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ private function _getTaskTypes(): array {
\OCP\TaskProcessing\TaskTypes\AudioToAudioChat::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\AudioToAudioChat::class),
\OCP\TaskProcessing\TaskTypes\ContextAgentAudioInteraction::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\ContextAgentAudioInteraction::class),
\OCP\TaskProcessing\TaskTypes\AnalyzeImages::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\AnalyzeImages::class),
\OCP\TaskProcessing\TaskTypes\ImageToTextOpticalCharacterRecognition::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\ImageToTextOpticalCharacterRecognition::class),
];

foreach ($context->getTaskProcessingTaskTypes() as $providerServiceRegistration) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getName(): string {
* @since 33.0.0
*/
public function getDescription(): string {
return $this->l->t('Extract text from an image');
return $this->l->t('Extract text from files like images or PDFs');
}

/**
Expand All @@ -65,9 +65,9 @@ public function getId(): string {
public function getInputShape(): array {
return [
'input' => new ShapeDescriptor(
$this->l->t('Input Image'),
$this->l->t('The image to extract text from'),
EShapeType::Image
$this->l->t('Input files'),
$this->l->t('The files to extract text from'),
EShapeType::ListOfFiles
),
];
}
Expand All @@ -79,9 +79,9 @@ public function getInputShape(): array {
public function getOutputShape(): array {
return [
'output' => new ShapeDescriptor(
$this->l->t('Output text'),
$this->l->t('The text that was extracted from the image'),
EShapeType::Text
$this->l->t('Output texts'),
$this->l->t('The texts that were extracted from the files'),
EShapeType::ListOfTexts
),
];
}
Expand Down
Loading