Spaces:
Runtime error
Runtime error
ydshieh
commited on
Commit
•
c0cae7b
1
Parent(s):
1fc53da
change style
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
|
5 |
|
6 |
# Designing the interface
|
7 |
-
st.title("🖼️ French Image Caption Demo")
|
8 |
st.write("[Yih-Dar SHIEH](https://huggingface.co/ydshieh)")
|
9 |
|
10 |
st.sidebar.markdown(
|
@@ -36,8 +36,8 @@ sample_name = f"COCO_val2014_{sample_name.replace('.jpg', '').zfill(12)}.jpg"
|
|
36 |
sample_path = os.path.join(sample_dir, sample_name)
|
37 |
|
38 |
image = Image.open(sample_path)
|
39 |
-
show = st.image(image,
|
40 |
-
show.image(image, '\n\nSelected Image',
|
41 |
|
42 |
# For newline
|
43 |
st.sidebar.write('\n')
|
|
|
4 |
|
5 |
|
6 |
# Designing the interface
|
7 |
+
st.title("🖼️ French Image Caption Demo 📝")
|
8 |
st.write("[Yih-Dar SHIEH](https://huggingface.co/ydshieh)")
|
9 |
|
10 |
st.sidebar.markdown(
|
|
|
36 |
sample_path = os.path.join(sample_dir, sample_name)
|
37 |
|
38 |
image = Image.open(sample_path)
|
39 |
+
show = st.image(image, width=480)
|
40 |
+
show.image(image, '\n\nSelected Image', width=480)
|
41 |
|
42 |
# For newline
|
43 |
st.sidebar.write('\n')
|