Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.markdown("""
|
4 |
+
<style>
|
5 |
+
div.stButton > button:first-child {
|
6 |
+
background-color: #0099ff;
|
7 |
+
color: #ffffff
|
8 |
+
}
|
9 |
+
div.stButton > button:hover {
|
10 |
+
background-color: #00ff00;
|
11 |
+
color: #FFFFFF;
|
12 |
+
}
|
13 |
+
</style>""",unsafe_allow_html=True)
|
14 |
+
|
15 |
+
if "API_Key" not in st.session_state:
|
16 |
+
st.session_state['API_Key']=''
|
17 |
+
|
18 |
+
st.title('❤️Youtube Script Writing Tool')
|
19 |
+
|
20 |
+
st.sidebar.title('😎🗝️')
|
21 |
+
st.session_state['API_Key']=st.sidebar.text_input("What's your API key?",type='password')
|
22 |
+
st.sidebar.image('./Youtube.png',width=300,use_column_width=True)
|
23 |
+
|
24 |
+
prompt= st.text_input("Please provide the topic of the video",key="prompt")
|
25 |
+
video_length = ts.text_input("Expected Video Length 🕛 (in minutes)",key = 'video_length')
|
26 |
+
creativity = st.slider('Words limit ✨ - (0 LOW || 1 HIGH)',0.0,1.0,0.2,step=0.1)
|
27 |
+
|
28 |
+
submit = st.button('Generate Script for me')
|