Upload main.py
Browse files
main.py
CHANGED
|
@@ -200,7 +200,8 @@ class InferenceClass:
|
|
| 200 |
|
| 201 |
if bert_class=="SLM":
|
| 202 |
model_output = self.call_gpt(chat_history)
|
| 203 |
-
model_output = model_output.replace("<RAG data>","<keywords>")
|
|
|
|
| 204 |
print(model_output)
|
| 205 |
tmp = {'from': 'gpt','Next':False}
|
| 206 |
outs = model_output.split(';\n')
|
|
|
|
| 200 |
|
| 201 |
if bert_class=="SLM":
|
| 202 |
model_output = self.call_gpt(chat_history)
|
| 203 |
+
model_output = model_output.replace("<RAG data>","<keywords>").replace('晚上晚上','晚上').replace("ShoushanLover'sObservatory","Shoushan Lover's Observatory").replace('SizihwanBay','Sizihwan Bay')
|
| 204 |
+
|
| 205 |
print(model_output)
|
| 206 |
tmp = {'from': 'gpt','Next':False}
|
| 207 |
outs = model_output.split(';\n')
|