MinxuanQin
commited on
Commit
·
2e4b982
1
Parent(s):
cb34751
fix error in display
Browse files
app.py
CHANGED
@@ -37,9 +37,8 @@ label = sample['label']
|
|
37 |
|
38 |
# inference
|
39 |
question = st.text_input(f"Ask the model a question related to the image: \n"
|
40 |
-
f"(e.g. \"{sample['
|
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}")
|
|
|
37 |
|
38 |
# inference
|
39 |
question = st.text_input(f"Ask the model a question related to the image: \n"
|
40 |
+
f"(e.g. \"{sample['ques']}\")")
|
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}")
|