Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,13 @@ def inference(prompt_inputs):
|
|
30 |
prompt_inputs = prompt_inputs.replace('\n', ' ')
|
31 |
|
32 |
# prompt 구두점 단위로 분리하기
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
class_id_list = []
|
36 |
|
|
|
30 |
prompt_inputs = prompt_inputs.replace('\n', ' ')
|
31 |
|
32 |
# prompt 구두점 단위로 분리하기
|
33 |
+
split_list = re.split('[.?!]', prompt_inputs)
|
34 |
+
|
35 |
+
prompt_list = []
|
36 |
+
|
37 |
+
for prompt in split_list:
|
38 |
+
if prompt != "":
|
39 |
+
prompt_list.append(prompt)
|
40 |
|
41 |
class_id_list = []
|
42 |
|