vmalapaka commited on
Commit
532b696
·
verified ·
1 Parent(s): d74870e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -30,3 +30,22 @@ creativity = st.slider('Creativity limit ✨ - (0 LOW || 1 HIGH)', 0.0, 1.0, 0.2
30
 
31
  submit = st.button("Generate Script for me")
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  submit = st.button("Generate Script for me")
32
 
33
+
34
+ if submit:
35
+
36
+ if st.session_state['API_Key']:
37
+ search_result,title,script = generate_script(prompt,video_length,creativity,st.session_state['API_Key'])
38
+ st.success('Here is the requested script')
39
+
40
+ st.subheader("Title:")
41
+ st.write(title)
42
+
43
+ st.subheader("Your Video Script:📝")
44
+ st.write(script)
45
+
46
+ st.subheader("Check Out - DuckDuckGo Search:🔍")
47
+ with st.expander('Show more'):
48
+ st.info(search_result)
49
+ else:
50
+ st.error("Please provide API key.....")
51
+