Kvikontent commited on
Commit
027864c
1 Parent(s): 25fbe63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ if inpt and file is not None:
34
  image_bytes = io.BytesIO()
35
  image.save(image_bytes, format=image.format)
36
  image_bytes = image_bytes.getvalue()
37
- imgp = query(image_bytes)
38
  pp = "Generate answer on this question: " + inpt + ". Use this image description to give answer: " + imgp[0]['generated_text']
39
  output = generate_answer(pp)
40
  aimsg = msgs.chat_message("Assistant")
 
34
  image_bytes = io.BytesIO()
35
  image.save(image_bytes, format=image.format)
36
  image_bytes = image_bytes.getvalue()
37
+ imgp = blip_query(image_bytes)
38
  pp = "Generate answer on this question: " + inpt + ". Use this image description to give answer: " + imgp[0]['generated_text']
39
  output = generate_answer(pp)
40
  aimsg = msgs.chat_message("Assistant")