Charsarg commited on
Commit
74fbf86
·
verified ·
1 Parent(s): a3ba181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -30,15 +30,9 @@ def respond(
30
 
31
  response = ""
32
 
33
- for message in client.chat_completion(
34
- messages,
35
- max_tokens=max_tokens,
36
- stream=True,
37
- temperature=temperature,
38
- top_p=top_p,
39
- ):
40
  token = message.choices[0].delta.content
41
-
42
  response += token
43
  yield response
44
 
 
30
 
31
  response = ""
32
 
33
+ for message in client.chat_completion(messages,max_tokens=max_tokens,stream=True,temperature=temperature,top_p=top_p,):
 
 
 
 
 
 
34
  token = message.choices[0].delta.content
35
+ print(token)
36
  response += token
37
  yield response
38