YoutubeScript / app.py
vmalapaka's picture
Create app.py
b27d639 verified
raw history blame
No virus
917 Bytes
import streamlit as st
st.markdown("""
<style>
div.stButton > button:first-child {
background-color: #0099ff;
color : #ffffff;
}
div.stButton > button:hover {
background-color: #00ff00;
color : #FFFFFF;
}
</style>""",unsafe_allow_html = True)
if 'API_Key' not in st.session_state:
st.sessionState['API_Key'] = ''
st.title('Youtube Script Generation')
st.sidebar.title('API Key πŸ”‘ ')
st.sessionState['API_Key'] = st.sidebar.text_input("What's your API key?", type='password')
st.sidebar.image('/Youtube.jpg',width=300,use_column_width= True)
prompt = st.text_input('Provide the topic of the video',key="prompt")
video_length = st.text_input('Expected Video Length πŸ•’ (in min)',key="video_length")
creativity = st.slider('Creativity limit ✨ - (0 LOW || 1 HIGH)', 0.0, 1.0, 0.2,step=0.1)
submit = st.button("Generate Script for me")