pschofield2 commited on
Commit
1c0b871
·
verified ·
1 Parent(s): 4f13da0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def run_gpt_model(prompt: str, api_key: str) -> str:
196
  stream=True
197
  )
198
 
199
-
200
  for chunk in response:
201
  collected_chunks += chunk.choices[0].delta.content or ""
202
  print(chunk.choices[0].delta.content or "",end="")
 
196
  stream=True
197
  )
198
 
199
+ collected_chunks = ""
200
  for chunk in response:
201
  collected_chunks += chunk.choices[0].delta.content or ""
202
  print(chunk.choices[0].delta.content or "",end="")