Spaces:
Sleeping
Sleeping
Update app.py
Browse files22 unmodified lines232425262728298 unmodified lines3839404142434445464748495051525322 unmodified linesst.markdown("*Hint: click on the top-right corner of an image to enlarge it!*")# Set the columns# Model selectionst.sidebar.title("Model selection")8 unmodified lineswith st.spinner("Loading model..."):time.sleep(5)# load the model TODOst.markdown("# LLM Notebook")with st.form('my_form'):text = st.text_area('Prompt:', placeholder='Please, type your question and submit. ')print("tetx", text)submitted = st.form_submit_button('Submit')if submitted:with st.spinner("Analyzing..."):time.sleep(4)st.text("You predd submit")if __name__ == "__main__":22 unmodified lines2324252627282930318 unmodified lines4041424344454647484950515253545556575859606162636465666768697071727322 unmodified linesst.markdown("*Hint: click on the top-right corner of an image to enlarge it!*")# Set the columnscol1, col2 = st.columns(2)col1.subheader("Input page")col2.subheader("Segmentation heatmap")# Model selectionst.sidebar.title("Model selection")8 unmodified lineswith st.spinner("Loading model..."):time.sleep(5)# load the model TODOtext_input = ''with col1:text_input_temp = st.text_input("Please, type your question and submit.","Your prompt",key="placeholder",)if st.button("Submit"):text_input = text_input_tempwith col2:if text_input != '':with st.spinner("Analyzing..."):time.sleep(4)st.write("You entered: ", text_input)text_input = ''# st.markdown("# LLM Notebook")# with st.form('my_form'):# text = st.text_area('Prompt:', placeholder='Please, type your question and submit. ')# print("tetx", text)# submitted = st.form_submit_button('Submit')# if submitted:# with st.spinner("Analyzing..."):# time.sleep(4)# st.text("You predd submit")if __name__ == "__main__":
app.py+29-9