abanm commited on
Commit
e568f9c
·
verified ·
1 Parent(s): 85940e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def call_api(message):
46
  if chunk.strip(): # Ensure the chunk is not empty
47
  try:
48
  # Parse JSON chunk
49
- data = json.loads(chunk)
50
  if "response" in data:
51
  yield data["response"]
52
  except json.JSONDecodeError:
 
46
  if chunk.strip(): # Ensure the chunk is not empty
47
  try:
48
  # Parse JSON chunk
49
+ data = json.loads(chunk)
50
  if "response" in data:
51
  yield data["response"]
52
  except json.JSONDecodeError: