philmui commited on
Commit
64bb2e7
·
1 Parent(s): 201b270

started a streamlit app

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Global",
4
+ page_icon=":cart:",
5
+ layout="wide")
6
+ st.header("💰 Wealth of Nations 🌎")
7
+
8
+ def get_question():
9
+ input_text = st.text_area(label="Your question about Wealth of Nations ...",
10
+ placeholder="Ask me anything ...",
11
+ key="question_text", label_visibility="collapsed")
12
+ return input_text
13
+
14
+ question_text = get_question()
15
+ if question_text and len(question_text) > 1:
16
+ output="The wealth of nations is strong!"
17
+
18
+ height = min(2*len(output), 280)
19
+ st.text_area(label="In response ...",
20
+ value=output, height=height)