krippto commited on
Commit
865fa03
β€’
1 Parent(s): 40b9714

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
 
3
  st.markdown("""
4
  <style>
@@ -29,16 +30,18 @@ submit = st.button('Generate Script for me')
29
 
30
  if submit:
31
  if st.session_state["API_Key"]:
 
32
  st.success("Hope you like this script ❀️")
33
 
34
  st.subheader("Title:πŸ”₯")
35
-
 
36
  st.subheader("Your Video Script:πŸ“")
 
37
 
38
  st.subheader('Check Out - DuckDuckGo Search:πŸ”')
39
-
40
  with st.expander("Show me πŸ‘€"):
41
- st.info('Search data')
42
 
43
  else:
44
  st.error('Oooopsssss!!! Please provide API key......')
 
1
  import streamlit as st
2
+ from utils import generate_script
3
 
4
  st.markdown("""
5
  <style>
 
30
 
31
  if submit:
32
  if st.session_state["API_Key"]:
33
+ search_result,title,script = generate_script(prompt,video_length,creativity,st.session_state['API_Key'])
34
  st.success("Hope you like this script ❀️")
35
 
36
  st.subheader("Title:πŸ”₯")
37
+ st.write(title)
38
+
39
  st.subheader("Your Video Script:πŸ“")
40
+ st.write(script)
41
 
42
  st.subheader('Check Out - DuckDuckGo Search:πŸ”')
 
43
  with st.expander("Show me πŸ‘€"):
44
+ st.info(search_result)
45
 
46
  else:
47
  st.error('Oooopsssss!!! Please provide API key......')