Upload 2 files
Browse files- b.py +52 -0
- deepseek.json +241 -0
b.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import json
|
| 3 |
+
|
| 4 |
+
# Load JSON Data
|
| 5 |
+
json_path = "deepseek.json"
|
| 6 |
+
with open(json_path, "r") as file:
|
| 7 |
+
json_data = json.load(file)
|
| 8 |
+
|
| 9 |
+
st.title("JSON Data Editor for Courses")
|
| 10 |
+
|
| 11 |
+
# Function to convert string inputs to appropriate types
|
| 12 |
+
def convert_type(value):
|
| 13 |
+
if value.lower() == "true":
|
| 14 |
+
return True
|
| 15 |
+
elif value.lower() == "false":
|
| 16 |
+
return False
|
| 17 |
+
elif value.isdigit():
|
| 18 |
+
return int(value)
|
| 19 |
+
try:
|
| 20 |
+
return float(value)
|
| 21 |
+
except ValueError:
|
| 22 |
+
return value
|
| 23 |
+
|
| 24 |
+
# Function to render nested dictionaries
|
| 25 |
+
def edit_json(data, key_prefix=""):
|
| 26 |
+
updated_data = {}
|
| 27 |
+
for key, value in data.items():
|
| 28 |
+
full_key = f"{key_prefix}{key}"
|
| 29 |
+
if isinstance(value, dict):
|
| 30 |
+
st.subheader(key)
|
| 31 |
+
updated_data[key] = edit_json(value, key_prefix=f"{full_key}.")
|
| 32 |
+
elif isinstance(value, list):
|
| 33 |
+
st.subheader(key)
|
| 34 |
+
updated_list = []
|
| 35 |
+
for i, item in enumerate(value):
|
| 36 |
+
if isinstance(item, dict):
|
| 37 |
+
updated_list.append(edit_json(item, key_prefix=f"{full_key}[{i}]."))
|
| 38 |
+
else:
|
| 39 |
+
input_value = st.text_area(f"{full_key}[{i}]", value=str(item))
|
| 40 |
+
updated_list.append(convert_type(input_value))
|
| 41 |
+
updated_data[key] = updated_list
|
| 42 |
+
else:
|
| 43 |
+
input_value = st.text_input(full_key, value=str(value))
|
| 44 |
+
updated_data[key] = convert_type(input_value)
|
| 45 |
+
return updated_data
|
| 46 |
+
|
| 47 |
+
updated_json = edit_json(json_data)
|
| 48 |
+
|
| 49 |
+
# Button to generate formatted updated JSON
|
| 50 |
+
if st.button("Generate Updated JSON"):
|
| 51 |
+
formatted_json = json.dumps(updated_json, indent=4, ensure_ascii=False).replace("True", "true").replace("False", "false")
|
| 52 |
+
st.code(formatted_json, language="json")
|
deepseek.json
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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eepSeek is trending for its open-source AI, cost-efficiency & performance. This free course covers basics, API, prompting & image generation. Enroll now!",
|
| 5 |
+
"og_image_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/og_image-4.webp",
|
| 6 |
+
"og_title": "Getting Started with DeepSeek Ai",
|
| 7 |
+
"og_description": "DeepSeek is trending for its open-source AI, cost-efficiency & performance. This free course covers basics, API, prompting & image generation. Enroll now!",
|
| 8 |
+
"ctas": {
|
| 9 |
+
"listing_page_cta_text": "Enroll Now",
|
| 10 |
+
"course_cta_text": "Join Today",
|
| 11 |
+
"sticky_card_cta_text": "Start Now",
|
| 12 |
+
"certification_cta_text": "Get Certified",
|
| 13 |
+
"redirection_link": "https://courses.analyticsvidhya.com/courses/getting-started-with-deepSeek"
|
| 14 |
+
},
|
| 15 |
+
"course_information": {
|
| 16 |
+
"course_name": {
|
| 17 |
+
"left":"Getting Started",
|
| 18 |
+
"right":"DeepSeek-AI",
|
| 19 |
+
"middle":"with",
|
| 20 |
+
"where_gradient":"left"
|
| 21 |
+
},
|
| 22 |
+
"course_description": "DeepSeek is trending for its open-source AI, rivaling top models.",
|
| 23 |
+
"course_price": 0,
|
| 24 |
+
"course_duration": {
|
| 25 |
+
"course_hours": 2,
|
| 26 |
+
"course_minutes": 0
|
| 27 |
+
},
|
| 28 |
+
"course_level": "beginner",
|
| 29 |
+
"course_lessons": 2,
|
| 30 |
+
"banner_image_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/course_background_image-2.webp",
|
| 31 |
+
"course_banner_image_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/course_banner_image-2.webp",
|
| 32 |
+
"course_background_image_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/course_background_image-2.webp"
|
| 33 |
+
},
|
| 34 |
+
"file_type": "image",
|
| 35 |
+
"file_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/course_background_image-2.webp",
|
| 36 |
+
"priority": 4,
|
| 37 |
+
"category": ["Gen AI"],
|
| 38 |
+
"is_highlighted": true,
|
| 39 |
+
"course_highlights_points":[
|
| 40 |
+
"Learn DeepSeek Fundamentals",
|
| 41 |
+
"Explore Why DeepSeek is Trending",
|
| 42 |
+
"DeepSeek Architecture Insights"
|
| 43 |
+
],
|
| 44 |
+
|
| 45 |
+
"is_free": false,
|
| 46 |
+
"is_popular": true,
|
| 47 |
+
"is_published": true,
|
| 48 |
+
"navbar_sections": {
|
| 49 |
+
"about_course": {
|
| 50 |
+
"show_this_section": true,
|
| 51 |
+
"details": [
|
| 52 |
+
"Understand DeepSeek’s core capabilities, prompting techniques, and real-world applications.",
|
| 53 |
+
"Explore DeepSeek’s architecture and learn how its components work together gaining hands-on experience.",
|
| 54 |
+
"Discover why DeepSeek is trending and how it is transforming AI-powered interactions."
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
"learning_outcome": {
|
| 58 |
+
"show_this_section": true,
|
| 59 |
+
"details": [
|
| 60 |
+
{
|
| 61 |
+
"heading": "DeepSeek’s Impact",
|
| 62 |
+
"sub_heading": "Explore why DeepSeek is trending and challenging top AI models."
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"heading": "AI Optimization",
|
| 66 |
+
"sub_heading": "Learn how DeepSeek boosts efficiency with smart training methods."
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"heading": "DeepSeek vs. Others",
|
| 70 |
+
"sub_heading": "Compare DeepSeek with OpenAI and Gemini on cost and performance"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"heading": "DeepSeek Architecture",
|
| 74 |
+
"sub_heading": "Understand key components and innovations in DeepSeek models."
|
| 75 |
+
}
|
| 76 |
+
]
|
| 77 |
+
},
|
| 78 |
+
"who_should_enroll": {
|
| 79 |
+
"show_this_section": false,
|
| 80 |
+
"details": [
|
| 81 |
+
"AI & Data Professionals – Understand advanced AI tools for analytics and data-driven decision-making.",
|
| 82 |
+
"Beginners in AI & ML – Explore how DeepSeek and other AI platforms are transforming the industry.",
|
| 83 |
+
"Tech Enthusiasts & Innovators – Learn and apply advanced AI tools to real-world challenges and industry use cases."
|
| 84 |
+
]
|
| 85 |
+
},
|
| 86 |
+
"course_curriculum": {
|
| 87 |
+
"show_this_section": true,
|
| 88 |
+
"details": {
|
| 89 |
+
"sub_heading": "Explore a comprehensive curriculum covering Python, machine learning models, deep learning techniques, and AI applications.",
|
| 90 |
+
"tool_logos_imageurl":[
|
| 91 |
+
"https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/unnamed.webp"
|
| 92 |
+
],
|
| 93 |
+
"content": [
|
| 94 |
+
{
|
| 95 |
+
"module_name": "Introduction to DeepSeek",
|
| 96 |
+
"lessons": [
|
| 97 |
+
"What is Deep Seek?",
|
| 98 |
+
"What makes a DeepSeek a Game-changer?",
|
| 99 |
+
"Let's Compare"
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"module_name": "DeepSeek Architecture",
|
| 104 |
+
"lessons": [
|
| 105 |
+
"The DeepSeek Architecture: Overview",
|
| 106 |
+
"Building regression and classification models using Scikit-learn.",
|
| 107 |
+
"Breaking down the DeepSeek Architecture"
|
| 108 |
+
]
|
| 109 |
+
}
|
| 110 |
+
]
|
| 111 |
+
}
|
| 112 |
+
},
|
| 113 |
+
"projects": {
|
| 114 |
+
"show_this_section": false,
|
| 115 |
+
"details": {
|
| 116 |
+
"sub_heading": "Hands-on AI and machine learning projects.",
|
| 117 |
+
"content":[
|
| 118 |
+
{
|
| 119 |
+
"project_heading": "Real-World ML Applications",
|
| 120 |
+
"project_descption": "Work on predictive modeling, AI-driven analytics, and deep learning projects to solve real-world business challenges effectively.",
|
| 121 |
+
"project_image_imageurl":"https://imgcdn.analyticsvidhya.com/freecourses_cms/Projects.webp"
|
| 122 |
+
}
|
| 123 |
+
]
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
"instructor": {
|
| 127 |
+
"show_this_section": true,
|
| 128 |
+
"details": [
|
| 129 |
+
{
|
| 130 |
+
"name": "Prashant Sahu",
|
| 131 |
+
"bio": "Prashant Sahu, Ph.D IIT Bombay; Data Science Manager, Analytics Vidhya A dynamic and innovative Data Scientist who brings extensive experience in Artificial Intelligence, Machine Learning, and Advanced Analytics to the table.",
|
| 132 |
+
"linkedin": "https://www.linkedin.com/in/prashantksahu/",
|
| 133 |
+
"email": "john.doe@example1.com",
|
| 134 |
+
"instructor_company_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/instructor_company-2.webp",
|
| 135 |
+
"instructor_image_imageurl":"https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/instructor_image-2.webp",
|
| 136 |
+
"designation": "Manager, Analytics Vidhya"
|
| 137 |
+
}
|
| 138 |
+
]
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
"sticky_sidecard": {
|
| 142 |
+
"details": {
|
| 143 |
+
"content": {
|
| 144 |
+
"duration": 120,
|
| 145 |
+
"course_level": "beginner",
|
| 146 |
+
"instructor_name": ["Prashant Sahu"]
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
},
|
| 150 |
+
"faq": {
|
| 151 |
+
"details": [
|
| 152 |
+
{
|
| 153 |
+
"question":"What makes DeepSeek different from OpenAI models?",
|
| 154 |
+
"answer":"DeepSeek is open-source, cost-efficient, and customizable, allowing developers to modify the models for specific applications, unlike proprietary models from OpenAI."
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"question":"How does DeepSeek manage to train AI models at such a low cost?",
|
| 158 |
+
"answer":"DeepSeek utilizes smart optimizations and focuses on training only the essential parts of the model, significantly reducing resource usage compared to traditional methods."
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"question":"Can I use DeepSeek for commercial applications?",
|
| 162 |
+
"answer":"Yes! Since DeepSeek is open-source, you can freely use it in commercial projects while also customizing it to fit your needs."
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"question":"What types of applications can I build with DeepSeek?",
|
| 166 |
+
"answer":"You can build a wide range of applications, including chatbots, image generation tools, and data analysis systems using the DeepSeek API."
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"question":"How does the DeepSeek API compare to other APIs?",
|
| 170 |
+
"answer":"The DeepSeek API is designed to be user-friendly and efficient, offering robust features that allow for quick integration and high performance in various applications."
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"question":"Will I receive a certificate upon completion?",
|
| 174 |
+
"answer":"Yes, you will receive a certificate of completion after successfully finishing the course and assessments."
|
| 175 |
+
}
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
"certificates": {
|
| 179 |
+
"details": {
|
| 180 |
+
"sub_heading": "Earn a professional certificate upon course completion",
|
| 181 |
+
"content": {
|
| 182 |
+
"certificate_points": [
|
| 183 |
+
"Globally recognized certificate",
|
| 184 |
+
"Verifiable online credential",
|
| 185 |
+
"Enhances professional credibility"
|
| 186 |
+
],
|
| 187 |
+
"certificate_images_imageurl": [
|
| 188 |
+
"https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/certificate_images_DeepSeek-from-Scratchwebp.webp"
|
| 189 |
+
]
|
| 190 |
+
}
|
| 191 |
+
}
|
| 192 |
+
},
|
| 193 |
+
"related_courses": {
|
| 194 |
+
"details": {
|
| 195 |
+
"sub_heading": "Expand your knowledge with these related courses and expand way beyond",
|
| 196 |
+
"content": [
|
| 197 |
+
{
|
| 198 |
+
"course_name": "Advanced Data Science & Machine Learning",
|
| 199 |
+
"course_duration": {
|
| 200 |
+
"text": "10 hours 30 minutes",
|
| 201 |
+
"course_hours": 10,
|
| 202 |
+
"course_minutes": 30
|
| 203 |
+
},
|
| 204 |
+
"course_lessons": 25,
|
| 205 |
+
"course_rating": 4.7,
|
| 206 |
+
"students_enrolled": 1200,
|
| 207 |
+
"course_banner_image_imageurl": "https://cdn.analyticsvidhya.com/wp-content/uploads/2025/03/course_banner_image-1.webp",
|
| 208 |
+
"course_detail_page_redirection_link":"https://www.analyticsvidhya.com/courses/ds-bootcamp/"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"course_name": "Full-Stack Web Development with React & Node.js",
|
| 212 |
+
"course_duration": {
|
| 213 |
+
"text": "12 hours 45 minutes",
|
| 214 |
+
"course_hours": 12,
|
| 215 |
+
"course_minutes": 45
|
| 216 |
+
},
|
| 217 |
+
"course_lessons": 30,
|
| 218 |
+
"course_rating": 4.8,
|
| 219 |
+
"students_enrolled": 1500,
|
| 220 |
+
"course_banner_image_imageurl": "https://imgcdn.analyticsvidhya.com/freecourses_cms/RelatedCourses1.webp",
|
| 221 |
+
"course_detail_page_redirection_link":"https://www.analyticsvidhya.com/courses/ds-bootcamp/"
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"course_name": "Cybersecurity Fundamentals for Beginners",
|
| 225 |
+
"course_duration": {
|
| 226 |
+
"text": "8 hours 20 minutes",
|
| 227 |
+
"course_hours": 8,
|
| 228 |
+
"course_minutes": 20
|
| 229 |
+
},
|
| 230 |
+
"course_lessons": 20,
|
| 231 |
+
"course_rating": 4.6,
|
| 232 |
+
"students_enrolled": 800,
|
| 233 |
+
"course_banner_image_imageurl": "https://imgcdn.analyticsvidhya.com/freecourses_cms/RelatedCourses1.webp",
|
| 234 |
+
"course_detail_page_redirection_link":"https://www.analyticsvidhya.com/courses/ds-bootcamp/"
|
| 235 |
+
}
|
| 236 |
+
]
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
|
| 240 |
+
"popular_course_sub_heading": "Discover our most popular courses to boost your skills"
|
| 241 |
+
}
|