Unggi commited on
Commit
2393e13
1 Parent(s): 4ed057b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -30,7 +30,13 @@ def inference(prompt_inputs):
30
  prompt_inputs = prompt_inputs.replace('\n', ' ')
31
 
32
  # prompt 구두점 단위로 분리하기
33
- prompt_list = re.split('[.?!]+', prompt_inputs)
 
 
 
 
 
 
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