-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfacebook.py
More file actions
27 lines (25 loc) · 890 Bytes
/
facebook.py
File metadata and controls
27 lines (25 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import streamlit as st
import time
col1, col2 = st.columns([1,8])
with col1:
st.image("images/Picsart_24-07-27_21-39-31-349.png")
with col2:
st.header("Facebook Page Connection Tutorial")
st.info("Connect your bot to a **Facebook** page chat")
st.caption("---")
st.write("Follow the video instructions")
st.columns([1,4,1])[1].video("Untitled video - Made with Clipchamp (1).mp4")
st.write("---")
if st.session_state.questions == 0:
st.info("No bot have found!")
else:
link = st.text_input("The Page Link")
# bt = st.button("Connect")
if st.button("Connect"):
if link == "":
st.error("Enter the link!")
else:
with st.spinner():
time.sleep(5)
st.session_state.connected.append({"type": "facebook", "link": link})
st.success("Connected successfully")