| import streamlit as st |
|
|
| st.set_page_config(page_title="Global", |
| page_icon=":cart:", |
| layout="wide") |
| st.header("π° Wealth of Nations π") |
|
|
| def get_question(): |
| input_text = st.text_area(label="Your question about Wealth of Nations ...", |
| placeholder="Ask me anything ...", |
| key="question_text", label_visibility="collapsed") |
| return input_text |
|
|
| question_text = get_question() |
| if question_text and len(question_text) > 1: |
| output="The wealth of nations is strong!" |
|
|
| height = min(2*len(output), 280) |
| st.text_area(label="In response ...", |
| value=output, height=height) |
|
|