Skip to content

Commit

Permalink
Merge pull request #87 from cifrzak/przem/bugfix
Browse files Browse the repository at this point in the history
Issue 79: Make download_generated_image example compile again.
  • Loading branch information
D7EAD authored Dec 21, 2024
2 parents 92127a0 + f3e446d commit 575fdb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/images/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.13)
project(images)

# compilation error
#add_basic_example(download_generated_image)
add_basic_example(download_generated_image)
add_basic_example(generate_edit)
add_basic_example(generate_edit_async)
add_basic_example(generate_image)
Expand Down
5 changes: 3 additions & 2 deletions documentation/images/examples/download_generated_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ int main() {
"a siamese cat!"
);
Network::Download(
"C:/some/folder/file.png", // to
response["data"][0]["url"].get<std::string>() // from
"C:/some/folder/file.png", // to
response["data"][0]["url"].get<std::string>(), // from
netimpl::components::Header()
);
}
catch (std::exception& e) {
Expand Down

0 comments on commit 575fdb7

Please sign in to comment.