File size: 951 Bytes
9126dee
 
 
 
 
 
 
54f30d5
 
 
 
 
9126dee
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import streamlit as st
import lang_chain_code

st.title("Book Summary Application :book:")
st.subheader(':blue[by Venkat Reddy] :sunglasses:')
themes_tuple = ("Love and Romance", "Adventure and Exploration", "Coming of Age",    "Mystery and Crime",
                "Fantasy and Science Fiction", "Historical Fiction", "Self-Help and Personal Development",
                "Horror and Thriller", "Biography and Memoir","Social and Political Issues",
                "Health and Wellness","Business and Entrepreneurship","Technology and Innovation",
                "Spirituality and Religion","Sports and Athletics","Art and Creativity",
                "Environmental and Nature","Psychology and Mental Health","Travel and Culture",
                "Education and Learning"
                )
theme = st.sidebar.selectbox("Select a Theme", themes_tuple)

if theme:
  book_summary = lang_chain_code.book_summary_generator(theme)
  st.write(book_summary)