Merge branch 'ggerganov:master' into master
This commit is contained in:
commit
8e1fb49abf
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
# llama.cpp
|
# llama.cpp
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
[](https://github.com/ggerganov/llama.cpp/actions)
|
[](https://github.com/ggerganov/llama.cpp/actions)
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
|
|
|
@ -450,7 +450,10 @@ int main(int argc, char ** argv) {
|
||||||
std::string line;
|
std::string line;
|
||||||
bool another_line = true;
|
bool another_line = true;
|
||||||
do {
|
do {
|
||||||
std::getline(std::cin, line);
|
if (!std::getline(std::cin, line)) {
|
||||||
|
// input stream is bad or EOF received
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if (line.empty() || line.back() != '\\') {
|
if (line.empty() || line.back() != '\\') {
|
||||||
another_line = false;
|
another_line = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue