threadshare commited on
Commit
cd6f1d5
·
verified ·
1 Parent(s): 6669ee0

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -17,6 +17,7 @@ class EndpointHandler:
17
  trust_remote_code=True, device_map="auto")
18
 
19
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
 
20
  query = data.get("query", "你好, 兔兔")
21
  history = data.get("history", [])
22
  system = data.get("system", """你自称为"兔兔"。
 
17
  trust_remote_code=True, device_map="auto")
18
 
19
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
20
+ print(json.dumps(data, indent=4))
21
  query = data.get("query", "你好, 兔兔")
22
  history = data.get("history", [])
23
  system = data.get("system", """你自称为"兔兔"。