Skip to content

Commit 91b1c06

Browse files
authored
Merge pull request #41 from matlab-deep-learning/test_UsingDALLEToEditImages
Test using DALL•E to edit images
2 parents bebf8b2 + 9e32601 commit 91b1c06

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

examples/UsingDALLEToEditImages.mlx

1.08 MB
Binary file not shown.

tests/texampleTests.m

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
methods (TestClassSetup)
77
function setUpAndTearDowns(testCase)
8+
import matlab.unittest.fixtures.CurrentFolderFixture
9+
testCase.applyFixture(CurrentFolderFixture("../examples"));
10+
811
openAIEnvVar = "OPENAI_KEY";
912
secretKey = getenv(openAIEnvVar);
1013
% Create an empty .env file because it is expected by our .mlx
@@ -54,8 +57,13 @@ function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
5457
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
5558
end
5659

57-
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~)
58-
AnalyzeSentimentinTextUsingChatGPTinJSONMode;
60+
function testUsingDALLEToEditImages(~)
61+
UsingDALLEToEditImages;
62+
end
63+
64+
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
65+
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
66+
"llms:warningJsonInstruction");
5967
end
6068
end
6169

0 commit comments

Comments
 (0)