Skip to content

Commit

Permalink
Make download_generated_image example compile again.
Browse files Browse the repository at this point in the history
  • Loading branch information
cifrzak committed Dec 21, 2024
1 parent 92127a0 commit f3e446d
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 f3e446d

Please sign in to comment.