Spaces:
Runtime error
Runtime error
allowing html
Browse files
app.py
CHANGED
@@ -13,18 +13,18 @@ def gen_show_caption(sub_prompt=None, cap_prompt = ""):
|
|
13 |
subreddit, caption = virtexModel.predict(image_dict, sub_prompt=sub_prompt, prompt = cap_prompt)
|
14 |
st.markdown(
|
15 |
f"""
|
16 |
-
<style>
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
</style>
|
24 |
-
|
25 |
-
## <mono> <red> r/ {subreddit} </red> {caption} </mono>
|
26 |
-
"""
|
27 |
-
|
28 |
|
29 |
|
30 |
st.title("Image Captioning Demo from RedCaps")
|
|
|
13 |
subreddit, caption = virtexModel.predict(image_dict, sub_prompt=sub_prompt, prompt = cap_prompt)
|
14 |
st.markdown(
|
15 |
f"""
|
16 |
+
<style>
|
17 |
+
red{{
|
18 |
+
color:red
|
19 |
+
}}
|
20 |
+
mono{{
|
21 |
+
font-family: "Courier New";
|
22 |
+
}}
|
23 |
+
</style>
|
24 |
+
|
25 |
+
## <mono> <red> r/ {subreddit} </red> {caption} </mono>
|
26 |
+
""",
|
27 |
+
allow_unsafe_html=True)
|
28 |
|
29 |
|
30 |
st.title("Image Captioning Demo from RedCaps")
|