MogulojuSai commited on
Commit
283bfae
·
verified ·
1 Parent(s): 7d0ab36

Upload hugging_face_card.py

Browse files
Files changed (1) hide show
  1. hugging_face_card.py +55 -0
hugging_face_card.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import json
3
+
4
+ # Define the community details
5
+ community_name = "Telugu Data Science Community"
6
+ community_description = """
7
+ 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!
8
+ """
9
+
10
+ community_twitter = "https://twitter.com/MogulojuSai2" # Replace with your actual Twitter handle
11
+ community_linkedin = "https://www.linkedin.com/in/moguloju-sai-2b060b228/" # Replace with your actual LinkedIn group URL
12
+ community_github = "https://github.com/Saimoguloju" # Replace with your actual GitHub organization URL (optional)
13
+ community_logo = "[URL_to_your_logo]" # Replace with the URL of your community logo
14
+
15
+ # Create the JSON structure for the community card
16
+ community_card_data = {
17
+ "name": community_name,
18
+ "description": community_description,
19
+ "website": community_website,
20
+ "twitter": community_twitter,
21
+ "linkedin": community_linkedin,
22
+ "github": community_github, # Optional
23
+ "logo": community_logo,
24
+ "tags": ["data-science", "telugu", "community", "machine-learning", "ai"] # Add relevant tags
25
+ }
26
+
27
+ # Display the community details in Streamlit
28
+ st.title(community_name)
29
+ st.image(community_logo, width=200) # Display the logo
30
+ st.write(community_description)
31
+
32
+ # Display links
33
+ st.write(f"**Website:** [{community_website}]({community_website})")
34
+ st.write(f"**Twitter:** [{community_twitter}]({community_twitter})")
35
+ st.write(f"**LinkedIn:** [{community_linkedin}]({community_linkedin})")
36
+ if community_github:
37
+ st.write(f"**GitHub:** [{community_github}]({community_github})")
38
+
39
+
40
+ # Display the JSON (for copying to Hugging Face)
41
+ st.subheader("Hugging Face Community Card JSON")
42
+ st.code(json.dumps(community_card_data, indent=4), language="json")
43
+
44
+ # Button to download the JSON
45
+ if st.download_button("Download JSON", data=json.dumps(community_card_data, indent=4), file_name="community_card.json", mime="application/json"):
46
+ st.success("JSON file downloaded!")
47
+
48
+ # Optional: Add more sections to the Streamlit app, like upcoming events, blog posts, etc.
49
+ st.subheader("Upcoming Events (Optional)")
50
+ st.write("*(Add your events here)*")
51
+
52
+ st.subheader("Blog Posts (Optional)")
53
+ st.write("*(Add links to your blog posts here)*")
54
+
55
+ # ... other sections as needed