AhsanRazi's picture
Update app.py
3034038 verified
raw
history blame contribute delete
751 Bytes
# === Home.py (Main file) ===
import streamlit as st
import subprocess
# Install all Playwright browsers with system dependencies
try:
subprocess.run(
["playwright", "install", "chromium", "firefox", "webkit"],
check=True
)
print("Successfully installed all browsers for Crawl4AI.")
except subprocess.CalledProcessError as e:
print(f"Browser installation failed: {e}")
# APP code
st.set_page_config(
page_title="Home",
page_icon="🏠"
)
st.title("📖 Welcome to Blog Creation")
st.subheader("Select a page from the sidebar to start generating your blog.")
# Add a visual divider
st.markdown("---")
# Engaging CTA Section
st.success("✨ Get started by selecting an option from the sidebar!")