import streamlit as st with open('./answer.txt', 'r') as file: answer = file.readline() st.image('./problem.jpeg') user_answer = st.text_input('Insert your answer', value="") if user_answer == "": pass elif user_answer == answer: st.markdown('## YEAH! YOU MADE IT!') else: st.markdown('#### Nope...')