Minqin commited on
Commit
520d399
1 Parent(s): 30b0855

first commit image display

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ question = st.text_input("Type here one question on the image")
17
  if uploaded_file is not None:
18
  file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8)
19
  img = Image.fromarray(file_bytes)
20
- st.image(img, caption="Here is the uploaded image", use_column_width=True)
21
 
22
  encoding = processor(images=file_bytes, text=question, return_tensors="pt")
23
 
 
17
  if uploaded_file is not None:
18
  file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8)
19
  img = Image.fromarray(file_bytes)
20
+ # st.image(img, caption="Here is the uploaded image", use_column_width=True)
21
 
22
  encoding = processor(images=file_bytes, text=question, return_tensors="pt")
23