Skip to content

Commit

Permalink
Merge pull request #41 from matlab-deep-learning/test_UsingDALLEToEdi…
Browse files Browse the repository at this point in the history
…tImages

Test using DALL•E to edit images
  • Loading branch information
ccreutzi committed Jun 6, 2024
2 parents bebf8b2 + 9e32601 commit 91b1c06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Binary file modified examples/UsingDALLEToEditImages.mlx
Binary file not shown.
12 changes: 10 additions & 2 deletions tests/texampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

methods (TestClassSetup)
function setUpAndTearDowns(testCase)
import matlab.unittest.fixtures.CurrentFolderFixture
testCase.applyFixture(CurrentFolderFixture("../examples"));

openAIEnvVar = "OPENAI_KEY";
secretKey = getenv(openAIEnvVar);
% Create an empty .env file because it is expected by our .mlx
Expand Down Expand Up @@ -54,8 +57,13 @@ function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
end

function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~)
AnalyzeSentimentinTextUsingChatGPTinJSONMode;
function testUsingDALLEToEditImages(~)
UsingDALLEToEditImages;
end

function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
"llms:warningJsonInstruction");
end
end

Expand Down

0 comments on commit 91b1c06

Please sign in to comment.