mayedatariq commited on
Commit
191214c
·
verified ·
1 Parent(s): 1171fc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,14 +23,14 @@ def respond(message, history):
23
 
24
  response = ""
25
 
26
- for message in client.chat_completion(
27
  messages,
28
  max_tokens=256,
29
  temperature=0.7,
30
  top_p=0.9,
31
  stream=True,
32
  ):
33
- token = message.choices[0].delta.content
34
  response += token
35
  yield response
36
 
 
23
 
24
  response = ""
25
 
26
+ for chunk in client.chat_completion(
27
  messages,
28
  max_tokens=256,
29
  temperature=0.7,
30
  top_p=0.9,
31
  stream=True,
32
  ):
33
+ token = chunk.choices[0].delta.content
34
  response += token
35
  yield response
36