Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iMactool committed Jun 6, 2023
1 parent de8fbfa commit 0438b57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Replicate.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,15 @@ public function generate()
{
assert($this->prompt !== null, 'You must provide a prompt');
// assert($numberOfImages > 0, 'You must provide a number greater than 0');

$input = [];
$input = [
'prompt' => $this->prompt->toString(),
// 'num_outputs' => $numberOfImages,
];

if (isset($this->inputParams['prompts'])) {
unset($input['prompt']);
}
$input = array_merge($input, $this->inputParams);

$response = $this->client()->post(
Expand Down

0 comments on commit 0438b57

Please sign in to comment.