mohsinmubaraksk commited on
Commit
e33768e
·
verified ·
1 Parent(s): d5fe603

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def generate_response(prompt, history, temperature=0.5, max_tokens=1024, top_p=1
34
  # Collect the output from the stream
35
  output = ""
36
  for chunk in stream:
37
- output += chunk.choices[0].delta.content
38
  return output
39
 
40
  except Exception as e:
 
34
  # Collect the output from the stream
35
  output = ""
36
  for chunk in stream:
37
+ output += str(chunk.choices[0].delta.content)
38
  return output
39
 
40
  except Exception as e: