Ritesh-hf commited on
Commit
28ff4fe
·
1 Parent(s): ab12644
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -451,7 +451,7 @@ CURR_CONTEXT = ''
451
  # @spaces.GPU
452
  def get_answer(image=[], message='', sessionID='abc123'):
453
  global CURR_CONTEXT
454
- if image:
455
  try:
456
  # Process the image and message here
457
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
451
  # @spaces.GPU
452
  def get_answer(image=[], message='', sessionID='abc123'):
453
  global CURR_CONTEXT
454
+ if len(image) > 0:
455
  try:
456
  # Process the image and message here
457
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")