File tree 1 file changed +4
-1
lines changed
src/CSharp/CSharpExamples
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public void SearchOverCorpus(SquadCorpus corpus)
145
145
while ( true )
146
146
{
147
147
Console . Clear ( ) ;
148
- Console . Write ( $ "\n Type your question (\" { _exit } \" to exit): ") ;
148
+ Console . Write ( $ "Type your question (\" { _exit } \" to exit): ") ;
149
149
var question = Console . ReadLine ( ) ;
150
150
if ( question == _exit ) break ;
151
151
@@ -181,6 +181,9 @@ public void SearchOverCorpus(SquadCorpus corpus)
181
181
answers = answers . OrderByDescending ( answer => answer . Score ) . Take ( Config . TopK ) . ToList ( ) ;
182
182
var outputString = JsonSerializer . Serialize ( answers , serializerOptions ) ;
183
183
Console . WriteLine ( $ "Predictions:\n { outputString } ") ;
184
+
185
+ Console . Write ( "\n Hit Enter Key to ask next question." ) ;
186
+ Console . ReadLine ( ) ;
184
187
} // end foreach
185
188
} // end while
186
189
}
You can’t perform that action at this time.
0 commit comments