import streamlit as st import json # Define the community details community_name = "Telugu Data Science Community" community_description = """ A vibrant community dedicated to fostering and promoting Data Science in the Telugu-speaking region. We aim to connect, learn, and grow together through discussions, projects, resources, and events. Join us to explore the world of Data Science in Telugu! """ community_twitter = "https://twitter.com/MogulojuSai2" # Replace with your actual Twitter handle community_linkedin = "https://www.linkedin.com/in/moguloju-sai-2b060b228/" # Replace with your actual LinkedIn group URL community_github = "https://github.com/Saimoguloju" # Replace with your actual GitHub organization URL (optional) community_logo = "[URL_to_your_logo]" # Replace with the URL of your community logo # Create the JSON structure for the community card community_card_data = { "name": community_name, "description": community_description, "website": community_website, "twitter": community_twitter, "linkedin": community_linkedin, "github": community_github, # Optional "logo": community_logo, "tags": ["data-science", "telugu", "community", "machine-learning", "ai"] # Add relevant tags } # Display the community details in Streamlit st.title(community_name) st.image(community_logo, width=200) # Display the logo st.write(community_description) # Display links st.write(f"**Website:** [{community_website}]({community_website})") st.write(f"**Twitter:** [{community_twitter}]({community_twitter})") st.write(f"**LinkedIn:** [{community_linkedin}]({community_linkedin})") if community_github: st.write(f"**GitHub:** [{community_github}]({community_github})") # Display the JSON (for copying to Hugging Face) st.subheader("Hugging Face Community Card JSON") st.code(json.dumps(community_card_data, indent=4), language="json") # Button to download the JSON if st.download_button("Download JSON", data=json.dumps(community_card_data, indent=4), file_name="community_card.json", mime="application/json"): st.success("JSON file downloaded!") # Optional: Add more sections to the Streamlit app, like upcoming events, blog posts, etc. st.subheader("Upcoming Events (Optional)") st.write("*(Add your events here)*") st.subheader("Blog Posts (Optional)") st.write("*(Add links to your blog posts here)*") # ... other sections as needed