zamborg commited on
Commit
a888578
1 Parent(s): 7e7803e

html for subreddit

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -11,13 +11,18 @@ def gen_show_caption(sub_prompt=None, cap_prompt = ""):
11
  if sub_prompt is None and cap_prompt is not "":
12
  st.write("Without a specified subreddit we default to /r/pics")
13
  subreddit, caption = virtexModel.predict(image_dict, sub_prompt=sub_prompt, prompt = cap_prompt)
14
- st.header("Predicted Caption:\n\n")
15
- # st.subheader(f"r/{subreddit}:\t{caption}\n")
16
  st.markdown(
17
  f"""
18
- ### r/{subreddit}
19
-
20
- #### {caption}
 
 
 
 
 
 
 
21
  """
22
  )
23
 
11
  if sub_prompt is None and cap_prompt is not "":
12
  st.write("Without a specified subreddit we default to /r/pics")
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> r/ <red> {subreddit} </red> \t {caption} </mono>
26
  """
27
  )
28