MinxuanQin commited on
Commit
7f97ed5
1 Parent(s): c1b68f7

display question

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -40,5 +40,6 @@ question = st.text_input(f"Ask the model a question related to the image: \n"
40
  f"(e.g. \"{sample['question']}\")")
41
  args = load_model(model_name) # TODO: cache
42
  answer = get_answer(args, image, question, model_name)
 
43
  st.text(f"Answer by {model_name}: {answer}")
44
  st.text(f"Ground truth: {label}")
 
40
  f"(e.g. \"{sample['question']}\")")
41
  args = load_model(model_name) # TODO: cache
42
  answer = get_answer(args, image, question, model_name)
43
+ st.text(f"Question: {question}")
44
  st.text(f"Answer by {model_name}: {answer}")
45
  st.text(f"Ground truth: {label}")