File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ int main(int argc, char ** argv) {
133133 LOG (" \n " );
134134
135135 // write output
136- if (not generated_audio.empty ()) {
136+ if (! generated_audio.empty ()) {
137137 if (params.out_file .empty ()) {
138138 LOG_ERR (" ERR: --output is required for audio generation\n " );
139139 return 1 ;
@@ -144,7 +144,7 @@ int main(int argc, char ** argv) {
144144 LOG (" === GENERATED AUDIO ===\n Saved to %s\n\n " , params.out_file .c_str ());
145145 }
146146
147- if (not generated_text.empty ()) {
147+ if (! generated_text.empty ()) {
148148 LOG (" === GENERATED TEXT ===\n %s\n\n " , generated_text.c_str ());
149149 }
150150
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ class Runner::RunnerImpl {
485485 text_done = true ;
486486 }
487487
488- if (modality_left == 0 or text_done) {
488+ if (modality_left == 0 || text_done) {
489489 modality_left = interleaved_n_audio;
490490 current_modality = Modality::AUDIO_OUT ;
491491 }
@@ -498,7 +498,7 @@ class Runner::RunnerImpl {
498498 }
499499
500500 modality_left -= 1 ;
501- if (modality_left == 0 and not text_done) {
501+ if (modality_left == 0 && ! text_done) {
502502 current_modality = Modality::TEXT ;
503503 modality_left = interleaved_n_text;
504504 }
You can’t perform that action at this time.
0 commit comments