Spaces:
Running
on
Zero
Running
on
Zero
suwonpabby
commited on
Commit
•
13471ce
1
Parent(s):
171268d
Modify
Browse files
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 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
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
|