Spaces:
Sleeping
Sleeping
mohammad2928git
commited on
Commit
•
c105b09
1
Parent(s):
b98c98e
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ def main():
|
|
23 |
st.markdown("*Hint: click on the top-right corner of an image to enlarge it!*")
|
24 |
# Set the columns
|
25 |
|
26 |
-
|
|
|
|
|
27 |
|
28 |
# Model selection
|
29 |
st.sidebar.title("Model selection")
|
@@ -38,16 +40,34 @@ def main():
|
|
38 |
with st.spinner("Loading model..."):
|
39 |
time.sleep(5)
|
40 |
# load the model TODO
|
41 |
-
|
42 |
-
|
43 |
-
with
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
with st.spinner("Analyzing..."):
|
49 |
time.sleep(4)
|
50 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
|
53 |
if __name__ == "__main__":
|
|
|
23 |
st.markdown("*Hint: click on the top-right corner of an image to enlarge it!*")
|
24 |
# Set the columns
|
25 |
|
26 |
+
col1, col2 = st.columns(2)
|
27 |
+
col1.subheader("Input page")
|
28 |
+
col2.subheader("Segmentation heatmap")
|
29 |
|
30 |
# Model selection
|
31 |
st.sidebar.title("Model selection")
|
|
|
40 |
with st.spinner("Loading model..."):
|
41 |
time.sleep(5)
|
42 |
# load the model TODO
|
43 |
+
|
44 |
+
text_input = ''
|
45 |
+
with col1:
|
46 |
+
text_input_temp = st.text_input(
|
47 |
+
"Please, type your question and submit.",
|
48 |
+
"Your prompt",
|
49 |
+
key="placeholder",
|
50 |
+
)
|
51 |
+
|
52 |
+
if st.button("Submit"):
|
53 |
+
text_input = text_input_temp
|
54 |
+
|
55 |
+
with col2:
|
56 |
+
if text_input != '':
|
57 |
with st.spinner("Analyzing..."):
|
58 |
time.sleep(4)
|
59 |
+
st.write("You entered: ", text_input)
|
60 |
+
text_input = ''
|
61 |
+
|
62 |
+
# st.markdown("# LLM Notebook")
|
63 |
+
# with st.form('my_form'):
|
64 |
+
# text = st.text_area('Prompt:', placeholder='Please, type your question and submit. ')
|
65 |
+
# print("tetx", text)
|
66 |
+
# submitted = st.form_submit_button('Submit')
|
67 |
+
# if submitted:
|
68 |
+
# with st.spinner("Analyzing..."):
|
69 |
+
# time.sleep(4)
|
70 |
+
# st.text("You predd submit")
|
71 |
|
72 |
|
73 |
if __name__ == "__main__":
|