Dhahlan2000 commited on
Commit
c50c58a
·
verified ·
1 Parent(s): d123fea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def respond(
50
 
51
  messages.append({"role": "user", "content": message})
52
 
53
- response = ""
54
 
55
  # Stream response tokens from the chat completion API
56
  # for message_chunk in client.chat_completion(
@@ -69,7 +69,7 @@ def respond(
69
  model = "google/gemma-2b-it",
70
  messages=messages,
71
  max_tokens=max_tokens,
72
- stream=True,
73
  temperature=temperature,
74
  top_p=top_p,
75
  )
 
50
 
51
  messages.append({"role": "user", "content": message})
52
 
53
+ # response = ""
54
 
55
  # Stream response tokens from the chat completion API
56
  # for message_chunk in client.chat_completion(
 
69
  model = "google/gemma-2b-it",
70
  messages=messages,
71
  max_tokens=max_tokens,
72
+ stream=False,
73
  temperature=temperature,
74
  top_p=top_p,
75
  )