ysrakeshgupta commited on
Commit
58fe3eb
·
verified ·
1 Parent(s): 9c4f177

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -12
app.py CHANGED
@@ -30,19 +30,15 @@ st.set_page_config(
30
  initial_sidebar_state="collapsed",
31
  )
32
 
33
- st.header("Poem Generation App🧊")
34
  user_text = st.text_input("Enter title for blog")
35
- col1,col2 = st.columns([6,6])
 
 
 
36
 
37
- with col1:
38
- number_of_words = st.text_input("Number of words in Blog")
39
 
40
- #with col2:
41
- # blog_audience = st.selectbox("Select target audience",
42
- # ['Data Scientists', 'Researchers', 'Common People'],
43
- # index=2)
44
 
45
- submit_btn = st.button("Submit")
46
-
47
- if submit_btn:
48
- llm_response(user_text, number_of_words) # function call for printing results
 
30
  initial_sidebar_state="collapsed",
31
  )
32
 
33
+ st.header("File Insights🧊")
34
  user_text = st.text_input("Enter title for blog")
35
+ uploaded_file = st.file_uploader("Upload csv file")
36
+ if uploaded_file is not None:
37
+ df = pd.read_csv(uploaded_file)
38
+ print(df)
39
 
 
 
40
 
41
+ # submit_btn = st.button("Submit")
 
 
 
42
 
43
+ # if submit_btn:
44
+ # llm_response(user_text, number_of_words) # function call for printing results