spow12 commited on
Commit
59cd5f2
β€’
1 Parent(s): e900825

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
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