Update README.md
Browse files
README.md
CHANGED
@@ -101,13 +101,15 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
101 |
)
|
102 |
model.eval()
|
103 |
|
|
|
|
|
104 |
user_query = 'γγη²γζ§γγγγ‘γγ'
|
105 |
chara = "γγγ‘"
|
106 |
chat_history = [f'γ¦γΌγΆγΌ: {user_query}']
|
107 |
chat = "\n".join(chat_history)
|
108 |
# Note you have to change the path of system message dict.
|
109 |
# Check the repository file.
|
110 |
-
with open('system_dict.json', 'r') as f:
|
111 |
chara_background_dict = json.load(f)
|
112 |
|
113 |
#Original chats for better mimicking the target character
|
|
|
101 |
)
|
102 |
model.eval()
|
103 |
|
104 |
+
hf_hub_download(repo_id="spow12/ChatWaifu", filename="system_dict.json", local_dir='./')
|
105 |
+
|
106 |
user_query = 'γγη²γζ§γγγγ‘γγ'
|
107 |
chara = "γγγ‘"
|
108 |
chat_history = [f'γ¦γΌγΆγΌ: {user_query}']
|
109 |
chat = "\n".join(chat_history)
|
110 |
# Note you have to change the path of system message dict.
|
111 |
# Check the repository file.
|
112 |
+
with open('./system_dict.json', 'r') as f:
|
113 |
chara_background_dict = json.load(f)
|
114 |
|
115 |
#Original chats for better mimicking the target character
|