Spaces:
Runtime error
Runtime error
Commit ·
4d39816
1
Parent(s): d30d4ce
7 unmodified lines89101112131417 unmodified lines323334353637384 unmodified lines434445467 unmodified linesimport iost.set_page_config(layout="wide")st.markdown("This is a demo of the *ImageCoDe* dataset. Sample an example description with the left +/- button on the right and compare all the images with the +/- button on the right. If you want to know the groundtruth solution, scroll down to the end of the page!")col1, col2 = st.columns(2)17 unmodified linesimg_urls = images.copy()index = int(col2.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))col1.caption(f'Description: {descr}')img = images[index]images[index] = ImageOps.expand(Image.open(io.BytesIO(requests.get(images[index], stream=True).content)),border=20,fill='blue')4 unmodified linescol1.image(img, use_column_width=True, caption=cap)col2.image(images, width=175, caption=caps)st.markdown('#')7 unmodified lines89101112131417 unmodified lines323334353637384 unmodified lines43444546477 unmodified linesimport iost.set_page_config(layout="wide")st.markdown("**This is a demo of the *ImageCoDe* dataset. Sample an example description with the left +/- button on the right and compare all the images with the +/- button on the right. If you want to know the groundtruth solution, scroll down to the end of the page!**")col1, col2 = st.columns(2)17 unmodified linesimg_urls = images.copy()index = int(col2.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))col1.markdown(f'**Description**: \n{descr}')img = images[index]images[index] = ImageOps.expand(Image.open(io.BytesIO(requests.get(images[index], stream=True).content)),border=20,fill='blue')4 unmodified linescol1.image(img, use_column_width=True, caption=cap)col2.image(images, width=175, caption=caps)st.markdown('#')st.markdown(f'**Groundtruth solution:{idx}**')
app.py+4-3