Compare commits

..

No commits in common. "9be0b91927dfa4007d053df72dea7302990226bb" and "c5602a676caff5fe5a9f3b76b2bc614faf5121a5" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ API and command-line option may change frequently.***
- SYCL - SYCL
- Supported weight formats - Supported weight formats
- Pytorch checkpoint (`.ckpt` or `.pth`) - Pytorch checkpoint (`.ckpt` or `.pth`)
- Safetensors (`.safetensors`) - Safetensors (`./safetensors`)
- GGUF (`.gguf`) - GGUF (`.gguf`)
- Supported platforms - Supported platforms
- Linux - Linux

View File

@ -537,7 +537,7 @@ int main(int argc, const char** argv) {
} }
std::vector<uint8_t> mask_bytes; std::vector<uint8_t> mask_bytes;
if (req.form.has_file("mask")) { if (req.form.has_field("mask")) {
auto file = req.form.get_file("mask"); auto file = req.form.get_file("mask");
mask_bytes.assign(file.content.begin(), file.content.end()); mask_bytes.assign(file.content.begin(), file.content.end());
} }