Dl4 / app.py
Geek7's picture
Update app.py
d6e05c2 verified
raw
history blame
787 Bytes
import streamlit as st
from insta_reels.reels_downloader import download
def main():
st.title("Instagram Reels Downloader")
# Input field for Instagram Reels link
link = st.text_input("Enter Instagram Reels Link:")
# Input field for output path
output_path = st.text_input("Enter Output Path (e.g., videos/video.mp4):")
# Button to trigger the download
if st.button("Download Reels"):
if link and output_path:
try:
download(link, output_path)
st.success("Reels downloaded successfully!")
except Exception as e:
st.error(f"Error: {str(e)}")
else:
st.warning("Please enter valid Instagram Reels link and output path.")
if __name__ == "__main__":
main()