File size: 701 Bytes
64bb2e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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)
|