Skip to content

Commit

Permalink
docs:Vision examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Dec 8, 2023
1 parent e79a73a commit 2a60f6d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/AI-vision-examples.raku
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env raku
use v6.d;

use lib '.';
use lib './lib';

use LLM::Functions;

my $url1 = 'https://i.imgur.com/LEGfCeql.jpg';
my $url2 = 'https://i.imgur.com/H2n3m0Xl.jpg';
my $fname1 = $*HOME ~ '/Downloads/Racoon-inkblot.jpg';
my $fname2 = $*HOME ~ '/Downloads/ThreeHunters.jpg';
my @images = [$url1, $fname2];
my @urlImages = [$url1, $url2];
my @fileImages = [$fname1, $fname2];

#say llm-vision-synthesize(:@images2);
say llm-vision-synthesize('Describe the images:', @fileImages);
say '=' x 120;
say llm-vision-synthesize('Describe the images:', @urlImages);
#say llm-vision-synthesize(images => [$url1,]);
#say llm-vision-synthesize(images => [$fname2,]);

0 comments on commit 2a60f6d

Please sign in to comment.