Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 33 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,43 @@
AI Student Hackathon - Project Submission
# LearnallAI : A step toward Customised AI

Welcome to the submission day of our AI Student Hackathon! 🚀
This is my submission for @buildfastwithai[https://buildfastwithai.com/] hackathon
Provides:-
- Customised explanation
- Roadmap for future growth
- Quiz to test level of knowledge

We’re thrilled to have you participate and can't wait to see your innovative AI apps. Please follow the instructions below to submit your project for evaluation.
## Description
A app to help students learn new concepts according to their level of understanding and also to help student understand notes with the help of AI according to their level of understanding and comprehension.
- Educhain for Quiz generation
- Django for website making
- Gemini API for integration with AI
- Render for deploying

Submission Details
Right now i have not integrated many featuress but will do it shortly like:
-Good formatting
-user authentication
-chat storage system
-postgres database
-also i will make a custom finetuned model for this task

Submit the following information via the provided Google Form for us to access your AI applications:

Team Name: Your team's unique name.
##STEPS TO USE
1. Go to website
![image](https://github.com/user-attachments/assets/e2b1bd2e-3bf3-42e5-ad25-bc11161a4c87)

App Name: The name of your AI application.
2. Enter the topicyou want to learn like deep learning and SUBMIT
- if you are complete beginner then mark the checkbox
![image](https://github.com/user-attachments/assets/4febbaba-debb-4f89-9e90-8e588ea4ef61)

App Description: A brief overview of what your app does and its core features.
4. Answer the questions upto your knowledge and click NEXT
![image](https://github.com/user-attachments/assets/24a77bad-e4fd-4377-906a-ccaafdbfd233)

GitHub PR Link: The link to your Pull Request (PR) in the project repository.
5. Here you have your custom explanation
- SORRY RIGHT NOW THE FORMATTING IS A LITTLE UGLY BUT WILL IMPROVE
![image](https://github.com/user-attachments/assets/85304bfb-1809-44ee-9ec1-6513a4501c9b)

App Link: A link to the deployed version of your app.
You can use it for explaining documents in a similar way

Loom Video: A demo video link showing your app in action.


For detailed submission guidelines, please refer to the last doubt session recording: https://www.buildfastwithai.com/hackathon.

Important Links:

Google Form for Submission :- https://forms.gle/JVXGjYhxtdAhTGgm6

GitHub Project Submission Link :- https://shorturl.at/zgs3m

Deadline
⏰ Submission Deadline: Tonight, 11:59 PM. Make sure all components are submitted on time to ensure your project is evaluated.

Good luck, and we look forward to reviewing your amazing projects!
---
Hackathon Organizers
Build Fast with AI
Thank you and i welcome any sort of suggestions
and also i thank to build fast with ai for making me do such a thing
VISIT THEIR WEBSITE :- https://buildfastwithai.com/
Empty file added build_files.sh
Empty file.
Binary file added db.sqlite3
Binary file not shown.
22 changes: 22 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()
Empty file added myapp/__init__.py
Empty file.
Binary file added myapp/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added myapp/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file added myapp/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file added myapp/__pycache__/helping_utils.cpython-312.pyc
Binary file not shown.
Binary file added myapp/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file added myapp/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file added myapp/__pycache__/views.cpython-312.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions myapp/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions myapp/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class MyappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'myapp'
43 changes: 43 additions & 0 deletions myapp/helping_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

def text_formatter(txt):
# txt = txt.replace('\n', '<br>')
temp =txt
new = ''
rep = '<h2>'
find = False
rep2 = '<h1>'
i = 0
while i < len(temp) - 2:
if temp[i] + temp[i + 1] == '* ':
# Add the current header tag (<h2> or </h2>)
new += rep2
find = True
# Skip the next character because we've processed both '*'
i += 2

if temp[i] == '.' and find:
new += '</h2>'
find = False
i += 1

elif temp[i] + temp[i + 1] == '**':
# Add the current header tag (<h2> or </h2>)
new += rep
# Alternate between opening and closing tags
rep = '</h2>' if rep == '<h2>' else '<h2>'
# Skip the next character because we've processed both '*'
i += 2

else:
# Add the current character if it's not part of '**'
new += temp[i]
i += 1

# Add the last character if it was skipped by the loop
if i < len(temp):
new += temp[i]

# temp = new.replace('##', '<h2>')
lst = list(temp.partition('<br>'))

return lst
Empty file added myapp/migrations/__init__.py
Empty file.
Binary file not shown.
3 changes: 3 additions & 0 deletions myapp/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
142 changes: 142 additions & 0 deletions myapp/templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Page</title>
<style>
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #89fffd, #ef32d9);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

/* Add a fixed position for your name in the top-left corner */
.top-left-name {
position: absolute;
top: 10px;
left: 20px;
font-size: 35px;
color: white;
font-weight: bold;
}

.container {
text-align: center;
background: white;
padding: 50px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
margin-bottom: 20px;
font-size: 36px;
color: #333;
}

.search-box {
position: relative;
width: 100%;
max-width: 500px;
margin: 0 auto 30px;
}

.search-box input {
width: 100%;
padding: 15px;
border-radius: 30px;
border: 2px solid #ddd;
font-size: 16px;
transition: border 0.3s ease;
}

.search-box input:focus {
border-color: #42a5f5;
outline: none;
}

.file-upload {
margin-bottom: 20px;
}

/* Add a fixed position for your name in the top-right corner */
.top-right-name {
position: absolute;
top: 10px;
right: 20px; /* Changed from left to right */
font-size: 35px;
color: white;
font-weight: bold;
}

.next-button {
background-color: #ff4081;
color: white;
padding: 10px 20px;
border: none;
border-radius: 25px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}

.next-button:hover {
background-color: #f50057;
}
</style>
</head>
<body>
{% if popup %}
<script>
function myFunction() {
alert("either enter topic or PDF");
}
myFunction()
</script>
{% endif %}

<!-- Add your name at the top-left corner -->
<div class="top-left-name">
<a href="https://www.linkedin.com/in/rounak-gera-229a46287/">@Rounak Gera</a>
<a href="https://buildfastwithai.com/">Buildfastwithai</a>
</div>

<div class="top-right-name">
<a href="{% url 'test' %}">Test Your Knowledge</a>
</div>

<div class="container">
<h1>Enter the topic name :</h1>

<div class="search-box">
<form method="POST" enctype="multipart/form-data">
{% csrf_token %}
<input type="text" name="search" placeholder="Type your query here..." >
<br><br>

<!-- File upload for PDF notes (optional) -->
<div class="file-upload">
<label for="file">Upload Your Notes (Optional, PDF only):</label>
<input type="file" id="file" name="file" accept="application/pdf">
</div>
</div>

<!-- Checkbox for beginner option -->
<input type="checkbox" name="beginner" value="true">
<label for="beginner">Complete beginner</label>
<br><br>

<!-- Submit button moved here -->
<button type="submit" class="next-button">&#128269; Submit</button>

</form>
</div>

</body>
</html>
Loading