yangtb24 commited on
Commit
7e9327c
·
verified ·
1 Parent(s): 3865cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -380,7 +380,7 @@ def handsome_chat_completions():
380
  try:
381
  response_json = json.loads(line)
382
 
383
- if "usage" in response_json:
384
  # if "completion_tokens" in response_json["usage"]:
385
  # completion_tokens += response_json["usage"]["completion_tokens"]
386
  # if "prompt_tokens" in response_json["usage"]:
 
380
  try:
381
  response_json = json.loads(line)
382
 
383
+ # if "usage" in response_json:
384
  # if "completion_tokens" in response_json["usage"]:
385
  # completion_tokens += response_json["usage"]["completion_tokens"]
386
  # if "prompt_tokens" in response_json["usage"]: