Sarath0x8f commited on
Commit
3a844a3
·
verified ·
1 Parent(s): 8747d17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def respond(
33
  # Adding the current user input
34
  messages.append({"role": "user", "content": message})
35
 
36
- response = gr.Markdown("")
37
 
38
  # Streaming the response from the API
39
  for message in client.chat_completion(
@@ -44,7 +44,7 @@ def respond(
44
  top_p=top_p,
45
  ):
46
  token = message.choices[0].delta.content
47
- response += token
48
  yield response
49
 
50
 
 
33
  # Adding the current user input
34
  messages.append({"role": "user", "content": message})
35
 
36
+ response = ''
37
 
38
  # Streaming the response from the API
39
  for message in client.chat_completion(
 
44
  top_p=top_p,
45
  ):
46
  token = message.choices[0].delta.content
47
+ response += gr.Markdown(token)
48
  yield response
49
 
50