Deb Roclinn
commited on
Commit
•
76cdce6
1
Parent(s):
4305cb6
Formatting
Browse files- server.cpp +2 -2
server.cpp
CHANGED
@@ -104,7 +104,7 @@ int main(){
|
|
104 |
while(!commissions->empty()){
|
105 |
auto& [id, prompt] = commissions->front();
|
106 |
CROW_LOG_INFO << "Launched training for prompt: " + prompt;
|
107 |
-
run(string("sh train.sh \"") +
|
108 |
CROW_LOG_INFO << run(string("sh upload.sh ") + id);
|
109 |
CROW_LOG_INFO << "Finished training for prompt: " + prompt;
|
110 |
poppe();
|
@@ -126,7 +126,7 @@ int main(){
|
|
126 |
} else {
|
127 |
CROW_LOG_INFO << prompt << " commissioned";
|
128 |
auto id = uid(prompt);
|
129 |
-
enqueue({id, prompt});
|
130 |
pool->enqueue(training_loop);
|
131 |
CROW_LOG_INFO << "Launched training loop";
|
132 |
return "Scheduled training for " + id;
|
|
|
104 |
while(!commissions->empty()){
|
105 |
auto& [id, prompt] = commissions->front();
|
106 |
CROW_LOG_INFO << "Launched training for prompt: " + prompt;
|
107 |
+
run(string("sh train.sh \"") + prompt + "\"");
|
108 |
CROW_LOG_INFO << run(string("sh upload.sh ") + id);
|
109 |
CROW_LOG_INFO << "Finished training for prompt: " + prompt;
|
110 |
poppe();
|
|
|
126 |
} else {
|
127 |
CROW_LOG_INFO << prompt << " commissioned";
|
128 |
auto id = uid(prompt);
|
129 |
+
enqueue({id, strip(prompt, '\'', '\"')});
|
130 |
pool->enqueue(training_loop);
|
131 |
CROW_LOG_INFO << "Launched training loop";
|
132 |
return "Scheduled training for " + id;
|