leolaish commited on
Commit
62ed917
·
verified ·
1 Parent(s): 38ed5bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -530,9 +530,8 @@ def parse_data_chunk(data_chunk):
530
  Returns:
531
  list: A list of individual data entries with whitespace stripped.
532
  """
533
- def parse_data_chunk(data_chunk):
534
  if isinstance(data_chunk, ChatCompletionStreamOutput):
535
- data_chunk = data_chunk.text
536
  chunks = data_chunk.split("data:")
537
 
538
 
 
530
  Returns:
531
  list: A list of individual data entries with whitespace stripped.
532
  """
 
533
  if isinstance(data_chunk, ChatCompletionStreamOutput):
534
+ data_chunk = data_chunk.text
535
  chunks = data_chunk.split("data:")
536
 
537