khurrameycon commited on
Commit
4f37030
·
verified ·
1 Parent(s): 7c619f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -136,7 +136,7 @@ def predict_image(image_url, text, file_pref):
136
  stream=False,
137
  stop=None,
138
  )
139
-
140
  # for chunk in completion:
141
  # if chunk.choices[0].delta.content:
142
  # streamer.put(chunk.choices[0].delta.content)
@@ -152,6 +152,7 @@ def predict_image(image_url, text, file_pref):
152
  # for new_text in streamer:
153
  # buffer += new_text
154
  buffer = completion.choices[0].message
 
155
  return buffer
156
 
157
  except Exception as e:
 
136
  stream=False,
137
  stop=None,
138
  )
139
+ print(f"Completions: {completion}")
140
  # for chunk in completion:
141
  # if chunk.choices[0].delta.content:
142
  # streamer.put(chunk.choices[0].delta.content)
 
152
  # for new_text in streamer:
153
  # buffer += new_text
154
  buffer = completion.choices[0].message
155
+ print(buffer)
156
  return buffer
157
 
158
  except Exception as e: