suwonpabby commited on
Commit
13471ce
1 Parent(s): 171268d
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -223,13 +223,10 @@ def make_gen(QA, candidates, top_k, character_type):
223
  for idx, new_text in enumerate(streamer):
224
 
225
  if idx >= len(inputs):
226
- # if is_start:
227
- # yield new_text
228
- # if not is_start and "[말투반영]" in new_text:
229
- # print("⭐️")
230
- # print(new_text)
231
- # print("🔥")
232
- # is_start = True
233
  yield new_text
234
 
235
  is_start = False
 
223
  for idx, new_text in enumerate(streamer):
224
 
225
  if idx >= len(inputs):
226
+ if is_start:
227
+ yield new_text
228
+ if not is_start and "[말투반영]" in new_text:
229
+ is_start = True
 
 
 
230
  yield new_text
231
 
232
  is_start = False