Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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 |
+
|