Update app.py
Browse files
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(
|
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......')
|