Skip to content

Commit

Permalink
addressed conflicts and fixed images
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonpzg committed Feb 4, 2025
2 parents b21d964 + 596eb94 commit 125a115
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cortex

<p align="center">
<img width="1280" alt="Cortex.cpp Banner" src="https://github.com/user-attachments/assets/a27c0435-b3b4-406f-b575-96ac4f12244c">
<img width="1280" alt="Cortex.cpp Banner" src="./assets/cortex-banner.png">
</p>

<p align="center">
Expand Down Expand Up @@ -159,8 +159,33 @@ cortex-nightly hardware activate
| **Nightly** | [exe](https://app.cortexcpp.com/download/nightly/windows-amd64-network) | [pkg](https://app.cortexcpp.com/download/nightly/mac-universal-network) | [deb](https://app.cortexcpp.com/download/nightly/linux-amd64-network) |

### Build from Source

```bash
git clone https://github.com/janhq/cortex.cpp
cd engine/vcpkg && ./bootstrap-vcpkg.sh
cd ../build && cmake .. && make -j4
```

## Uninstall Cortex

### Windows

1. Open the Windows Control Panel.
2. Navigate to `Add or Remove Programs`.
3. Search for `cortexcpp` and double click to uninstall. (for beta and nightly builds, search for `cortexcpp-beta` and `cortexcpp-nightly` respectively)

### MacOs/Linux

Run the uninstaller script:

```bash
sudo cortex-uninstall.sh
```

The script to uninstall Cortex comes with the binary and was added to the `/usr/local/bin/` directory. The script is named `cortex-uninstall.sh` for stable builds, `cortex-beta-uninstall.sh` for beta builds and `cortex-nightly-uninstall.sh` for nightly builds.

## Contact Support

- For support, please file a [GitHub ticket](https://github.com/janhq/cortex.cpp/issues/new/choose).
- For questions, join our Discord [here](https://discord.gg/FTk2MvZwJH).
- For long-form inquiries, please email [[email protected]](mailto:[email protected]).
Binary file modified assets/cortex-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions engine/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
drogon::app().registerController(hw_ctl);
drogon::app().registerController(config_ctl);

auto upload_path = std::filesystem::temp_directory_path() / "cortex-uploads";
drogon::app().setUploadPath(upload_path.string());

LOG_INFO << "Server started, listening at: " << config.apiServerHost << ":"
<< config.apiServerPort;
LOG_INFO << "Please load your model";
Expand Down

0 comments on commit 125a115

Please sign in to comment.