Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,9 @@ def inference(prompt_inputs):
|
|
24 |
model_name = model_name
|
25 |
)
|
26 |
|
|
|
|
|
|
|
27 |
# prompt 구두점 단위로 분리하기
|
28 |
prompt_list = prompt_inputs.split('.|!|?')
|
29 |
|
|
|
24 |
model_name = model_name
|
25 |
)
|
26 |
|
27 |
+
# preprocessing
|
28 |
+
prompt_inputs = prompt_inputs.replace('\n', ' ')
|
29 |
+
|
30 |
# prompt 구두점 단위로 분리하기
|
31 |
prompt_list = prompt_inputs.split('.|!|?')
|
32 |
|