Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def main():
|
4 |
+
st.title("Problem Statement and Factor Guess")
|
5 |
+
|
6 |
+
st.write("Please provide the following information:")
|
7 |
+
|
8 |
+
with st.form(key="input_form", clear_on_submit=True):
|
9 |
+
# 1. Problem Statement
|
10 |
+
problem_statement = st.text_input("1. Enter your problem statement:")
|
11 |
+
|
12 |
+
# 2. Factors Guess
|
13 |
+
factors = st.text_area("2. Enter your guess for the factors used to resolve this problem:")
|
14 |
+
|
15 |
+
submit_button = st.form_submit_button("Submit")
|
16 |
+
|
17 |
+
if submit_button:
|
18 |
+
st.markdown("### Your Submission")
|
19 |
+
st.write("**Problem Statement:**", problem_statement)
|
20 |
+
st.write("**Factors:**", factors)
|
21 |
+
|
22 |
+
if __name__ == "__main__":
|
23 |
+
main()
|