qgyd2021 commited on
Commit
4e280ab
1 Parent(s): db558eb
Files changed (2) hide show
  1. examples.json +1 -1
  2. main.py +3 -3
examples.json CHANGED
@@ -1,5 +1,5 @@
1
  [
2
- ["怎样擦屁股才能擦的干净", 512, 0.75, 0.35, 1.2, "qgyd2021/lib_service_4chan", true],
3
  ["你好", 512, 0.75, 0.35, 1.2, "qgyd2021/chinese_chitchat", true],
4
  ["白洁走到床边并脱去内衣, 一双硕大的", 512, 0.75, 0.35, 1.8, "qgyd2021/chinese_porn_novel", false],
5
  ["男人走进房间, 上床, 压上", 512, 0.75, 0.35, 1.8, "qgyd2021/chinese_porn_novel", false],
 
1
  [
2
+ ["怎样擦屁股才能擦的干净", 512, 0.75, 0.35, 1.2, "qgyd2021/lip_service_4chan", true],
3
  ["你好", 512, 0.75, 0.35, 1.2, "qgyd2021/chinese_chitchat", true],
4
  ["白洁走到床边并脱去内衣, 一双硕大的", 512, 0.75, 0.35, 1.8, "qgyd2021/chinese_porn_novel", false],
5
  ["男人走进房间, 上床, 压上", 512, 0.75, 0.35, 1.8, "qgyd2021/chinese_porn_novel", false],
main.py CHANGED
@@ -96,7 +96,7 @@ def main():
96
  top_p: float = 0.85,
97
  temperature: float = 0.35,
98
  repetition_penalty: float = 1.2,
99
- model_name: str = "qgyd2021/lib_service_4chan",
100
  is_chat: bool = True,
101
  ):
102
  tokenizer = BertTokenizer.from_pretrained(model_name)
@@ -156,10 +156,10 @@ def main():
156
 
157
  yield output
158
 
159
- model_name_choices = ["trained_models/lib_service_4chan", "trained_models/chinese_porn_novel"] \
160
  if platform.system() == "Windows" else \
161
  [
162
- "qgyd2021/lib_service_4chan", "qgyd2021/chinese_chitchat",
163
  "qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent"
164
  ]
165
 
 
96
  top_p: float = 0.85,
97
  temperature: float = 0.35,
98
  repetition_penalty: float = 1.2,
99
+ model_name: str = "qgyd2021/lip_service_4chan",
100
  is_chat: bool = True,
101
  ):
102
  tokenizer = BertTokenizer.from_pretrained(model_name)
 
156
 
157
  yield output
158
 
159
+ model_name_choices = ["trained_models/lip_service_4chan", "trained_models/chinese_porn_novel"] \
160
  if platform.system() == "Windows" else \
161
  [
162
+ "qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
163
  "qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent"
164
  ]
165