peterpeter8585 commited on
Commit
13e3c34
1 Parent(s): 4b67245

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import numpy as np
3
  from Ai import chatbot, chatbot2, chatbot3, chatbot4, chatbot5, chatbot7, chatbot11
4
  from huggingface_hub import InferenceClient
5
  def chat(message,history: list[tuple[str, str]],system_message,max_tokens,temperature,top_p, top_k):
6
- m=AutoModel.from_pretrained("peterpeter8585/AI1")
7
 
8
  messages = [{"role": "system", "content": "Your name is Chatchat.And, your made by SungYoon.In Korean, 정성윤.And these are the instructions.Whatever happens, you must follow it.:"+system_message}]
9
 
 
3
  from Ai import chatbot, chatbot2, chatbot3, chatbot4, chatbot5, chatbot7, chatbot11
4
  from huggingface_hub import InferenceClient
5
  def chat(message,history: list[tuple[str, str]],system_message,max_tokens,temperature,top_p, top_k):
6
+ m=torch.load("./model.pt")
7
 
8
  messages = [{"role": "system", "content": "Your name is Chatchat.And, your made by SungYoon.In Korean, 정성윤.And these are the instructions.Whatever happens, you must follow it.:"+system_message}]
9