Spaces:
Runtime error
Runtime error
Make center pane a bit wider.
Browse files
app.py
CHANGED
@@ -22,20 +22,13 @@ def gen_show_caption(sub_prompt=None, cap_prompt=""):
|
|
22 |
blue{{
|
23 |
color:#2a72d5
|
24 |
}}
|
25 |
-
mono{{
|
26 |
-
font-family: "Inconsolata";
|
27 |
-
}}
|
28 |
</style>
|
29 |
|
30 |
-
|
31 |
""",
|
32 |
unsafe_allow_html=True,
|
33 |
)
|
34 |
|
35 |
-
# st.markdown(footer,unsafe_allow_html=True)
|
36 |
-
|
37 |
-
_, center, _ = st.columns([1, 8, 1])
|
38 |
-
|
39 |
with st.spinner("Loading Model"):
|
40 |
virtexModel, imageLoader, sample_images, valid_subs = create_objects()
|
41 |
|
@@ -112,9 +105,9 @@ st.session_state["image"] = image
|
|
112 |
|
113 |
|
114 |
image_dict = imageLoader.transform(image)
|
115 |
-
|
116 |
show_image = imageLoader.show_resize(image)
|
117 |
|
|
|
118 |
|
119 |
with center:
|
120 |
st.title("Image Captioning with VirTex model trained on RedCaps")
|
|
|
22 |
blue{{
|
23 |
color:#2a72d5
|
24 |
}}
|
|
|
|
|
|
|
25 |
</style>
|
26 |
|
27 |
+
- <red> r/{subreddit} </red> <blue> {cap_prompt} </blue> {caption}
|
28 |
""",
|
29 |
unsafe_allow_html=True,
|
30 |
)
|
31 |
|
|
|
|
|
|
|
|
|
32 |
with st.spinner("Loading Model"):
|
33 |
virtexModel, imageLoader, sample_images, valid_subs = create_objects()
|
34 |
|
|
|
105 |
|
106 |
|
107 |
image_dict = imageLoader.transform(image)
|
|
|
108 |
show_image = imageLoader.show_resize(image)
|
109 |
|
110 |
+
_, center, _ = st.columns([1, 15, 1])
|
111 |
|
112 |
with center:
|
113 |
st.title("Image Captioning with VirTex model trained on RedCaps")
|