Spaces:
Runtime error
Runtime error
testing markdown printing
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ def gen_show_caption(sub_prompt=None, cap_prompt = ""):
|
|
11 |
st.write("Without a specified subreddit, caption prompts will skip subreddit prediction")
|
12 |
subreddit, caption = virtexModel.predict(image_dict, sub_prompt=sub_prompt, prompt = cap_prompt)
|
13 |
st.header("Predicted Caption:\n\n")
|
14 |
-
|
|
|
15 |
|
16 |
|
17 |
st.title("Image Captioning Demo from Redcaps")
|
|
|
11 |
st.write("Without a specified subreddit, caption prompts will skip subreddit prediction")
|
12 |
subreddit, caption = virtexModel.predict(image_dict, sub_prompt=sub_prompt, prompt = cap_prompt)
|
13 |
st.header("Predicted Caption:\n\n")
|
14 |
+
# st.subheader(f"r/{subreddit}:\t{caption}\n")
|
15 |
+
st.markdown(f"# **r/ {subreddit}** {caption}")
|
16 |
|
17 |
|
18 |
st.title("Image Captioning Demo from Redcaps")
|