ThongCoding commited on
Commit
bb74b53
·
verified ·
1 Parent(s): f8c01d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def respond(
50
  stream=True
51
  ):
52
  # Tiến hành nhận phản hồi từ mô hình
53
- response += chunk['choices'][0]['delta']['content']
54
 
55
  except Exception as e:
56
  return f"Error: {str(e)}"
 
50
  stream=True
51
  ):
52
  # Tiến hành nhận phản hồi từ mô hình
53
+ response += chunk.choices[0].delta.content
54
 
55
  except Exception as e:
56
  return f"Error: {str(e)}"