ThongCoding commited on
Commit
52c80f1
·
verified ·
1 Parent(s): 75b947c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def respond(
44
  stream=True
45
  ):
46
  # Tiến hành nhận phản hồi từ mô hình
47
- token = chunk["choices"][0]["delta"]["content"]
48
  response += token
49
 
50
  except Exception as e:
 
44
  stream=True
45
  ):
46
  # Tiến hành nhận phản hồi từ mô hình
47
+ token = chunk.choices[0].delta.content
48
  response += token
49
 
50
  except Exception as e: