vmalapaka commited on
Commit
b27d639
β€’
1 Parent(s): ec2a6f9

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -0
app.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+
4
+ st.markdown("""
5
+ <style>
6
+ div.stButton > button:first-child {
7
+ background-color: #0099ff;
8
+ color : #ffffff;
9
+ }
10
+ div.stButton > button:hover {
11
+ background-color: #00ff00;
12
+ color : #FFFFFF;
13
+ }
14
+ </style>""",unsafe_allow_html = True)
15
+
16
+
17
+ if 'API_Key' not in st.session_state:
18
+ st.sessionState['API_Key'] = ''
19
+
20
+ st.title('Youtube Script Generation')
21
+
22
+ st.sidebar.title('API Key πŸ”‘ ')
23
+
24
+ st.sessionState['API_Key'] = st.sidebar.text_input("What's your API key?", type='password')
25
+ st.sidebar.image('/Youtube.jpg',width=300,use_column_width= True)
26
+
27
+
28
+ prompt = st.text_input('Provide the topic of the video',key="prompt")
29
+ video_length = st.text_input('Expected Video Length πŸ•’ (in min)',key="video_length")
30
+ creativity = st.slider('Creativity limit ✨ - (0 LOW || 1 HIGH)', 0.0, 1.0, 0.2,step=0.1)
31
+
32
+ submit = st.button("Generate Script for me")
33
+