zamborg commited on
Commit
fd27ee1
1 Parent(s): e95972b

allowing html

Browse files
Files changed (1) hide show
  1. app.py +12 -12
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
- red{{
18
- color:red
19
- }}
20
- mono{{
21
- font-family: "Courier New";
22
- }}
23
- </style>
24
-
25
- ## <mono> <red> r/ {subreddit} </red> &nbsp;&nbsp;&nbsp; {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> &nbsp;&nbsp;&nbsp; {caption} </mono>
26
+ """,
27
+ allow_unsafe_html=True)
28
 
29
 
30
  st.title("Image Captioning Demo from RedCaps")