Commit ·
856baa5
1
Parent(s): 640042b
init
Browse files- .vscode/settings.json +5 -0
- README.md +40 -1
- app.py +29 -0
.vscode/settings.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"python-envs.defaultEnvManager": "ms-python.python:conda",
|
| 3 |
+
"python-envs.defaultPackageManager": "ms-python.python:conda",
|
| 4 |
+
"python-envs.pythonProjects": []
|
| 5 |
+
}
|
README.md
CHANGED
|
@@ -7,4 +7,43 @@ sdk: gradio
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
title: Zulense - AI Math Video Tutor emoji: 🧠 colorFrom: gray colorTo: green sdk: gradio sdk_version: 4.16.0 app_file: app.py pinned: false license: mit short_description: Generative AI Video Tutor for Class 8 & 9 Mathematics.
|
| 11 |
+
|
| 12 |
+
<div align="center">
|
| 13 |
+
|
| 14 |
+
🧠 Zulense AI
|
| 15 |
+
|
| 16 |
+
The World's First Generative AI Video Tutor for Class 8 & 9
|
| 17 |
+
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
🚀 About This Demo
|
| 21 |
+
|
| 22 |
+
Zulense bridges the gap between static textbooks and visual understanding. This Space demonstrates our proprietary Text-to-Video Engine, fine-tuned specifically for the Indian Mathematics Curriculum (CBSE/ICSE).
|
| 23 |
+
|
| 24 |
+
🎯 Mission
|
| 25 |
+
|
| 26 |
+
To provide every student with a personal AI tutor that doesn't just give the answer—it shows the solution.
|
| 27 |
+
|
| 28 |
+
📚 How to Use
|
| 29 |
+
|
| 30 |
+
Enter a Topic: Type a math concept relevant to Class 8 or 9 (e.g., "Volume of a Cylinder", "Pythagoras Theorem", "Linear Equations").
|
| 31 |
+
|
| 32 |
+
Generate: Click the Generate Video button.
|
| 33 |
+
|
| 34 |
+
Watch: The model will simulate the generation of a visual explanation.
|
| 35 |
+
|
| 36 |
+
Note: This is an Alpha Demo. The video generation capabilities are currently simulated for demonstration purposes as we scale our GPU infrastructure.
|
| 37 |
+
|
| 38 |
+
🛠 Tech Stack
|
| 39 |
+
|
| 40 |
+
Frontend: Gradio
|
| 41 |
+
|
| 42 |
+
Model Architecture: Custom Latent Diffusion Model (In Development)
|
| 43 |
+
|
| 44 |
+
Target Audience: K-12 Education (India)
|
| 45 |
+
|
| 46 |
+
<div align="center">
|
| 47 |
+
<p>Built with ❤️ in new Delhi, India.</p>
|
| 48 |
+
<p>© 2026 Zulense AI. All Rights Reserved.</p>
|
| 49 |
+
</div>
|
app.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import time
|
| 3 |
+
|
| 4 |
+
def generate_video(prompt):
|
| 5 |
+
# This is where your AI generation code will go later.
|
| 6 |
+
# For now, we simulate the "Thinking" process for the demo.
|
| 7 |
+
time.sleep(2)
|
| 8 |
+
return "https://cdn.pixabay.com/video/2016/09/21/5398-183786499_tiny.mp4" # Placeholder math video
|
| 9 |
+
|
| 10 |
+
# Custom CSS to match your "Dark Mode" Website
|
| 11 |
+
custom_css = """
|
| 12 |
+
body {background-color: #0F172A; color: white;}
|
| 13 |
+
.gradio-container {background-color: #0F172A; border: none;}
|
| 14 |
+
h1 {color: #4ADE80; font-family: 'Arial', sans-serif;}
|
| 15 |
+
"""
|
| 16 |
+
|
| 17 |
+
with gr.Blocks(css=custom_css) as demo:
|
| 18 |
+
gr.Markdown("# 🧠 Zulense AI: Class 8 & 9 Math Tutor")
|
| 19 |
+
gr.Markdown("Type a math question below (e.g., 'Explain Pythagoras Theorem') and watch the AI generate a video.")
|
| 20 |
+
|
| 21 |
+
with gr.Row():
|
| 22 |
+
input_text = gr.Textbox(label="Enter Math Question", placeholder="Type here...")
|
| 23 |
+
generate_btn = gr.Button("Generate Video 🎥", variant="primary")
|
| 24 |
+
|
| 25 |
+
output_video = gr.Video(label="AI Generated Explanation")
|
| 26 |
+
|
| 27 |
+
generate_btn.click(fn=generate_video, inputs=input_text, outputs=output_video)
|
| 28 |
+
|
| 29 |
+
demo.launch()
|