Mathemagic / app.py
RMHalak's picture
Update app.py
beaba36 verified
raw
history blame
339 Bytes
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
st.markdown(answer)
elif user_answer == answer:
st.markdown('YEAH! YOU MADE IT!')
else:
st.markdown('Nope...')