forked from Nandika-A/Graph-Analyzer
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aachintya/my-feature-branch
Added next 5 points prediction and added CSS
- Loading branch information
Showing
9 changed files
with
142 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
.env | ||
# Python | ||
*.pyc | ||
__pycache__/ | ||
*.pyo | ||
*.pyd | ||
|
||
# Virtual environment | ||
venv/ | ||
|
||
# Database | ||
db.sqlite3 | ||
|
||
# Local settings | ||
local_settings.py | ||
|
||
# Media and static files | ||
/media/ | ||
/static/ | ||
|
||
# Log files | ||
*.log | ||
|
||
# Environment variables | ||
.env | ||
|
||
# IDE files | ||
.vscode/ | ||
.idea/ | ||
|
||
# OS files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+22.4 KB
...-network-throughput-vs-simulation-time-120-nodes-Fig-6-depicts-the-value-of.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
Django==5.0.3 | ||
django-admin-sortable2==1.0.4 | ||
django-allauth==0.61.1 | ||
django-cors-headers==4.3.1 | ||
django-countries==7.5.1 | ||
django-timezone-field==6.1.0 | ||
google-api-core==2.11.0 | ||
google-api-python-client==2.37.0 | ||
google-auth==2.16.2 | ||
google-auth-httplib2==0.1.0 | ||
numpy==1.26.4 | ||
oauth2client==4.1.3 | ||
oauthlib==3.2.2 | ||
opencv-python==4.9.0.80 | ||
pandas==2.2.1 | ||
pip-tools==6.12.1 | ||
virtualenv==20.20.0 | ||
asgiref==3.8.1 | ||
certifi==2024.8.30 | ||
cffi==1.17.1 | ||
charset-normalizer==3.4.0 | ||
cryptography==43.0.3 | ||
Django==5.1.2 | ||
django-allauth==65.0.2 | ||
idna==3.10 | ||
numpy==2.1.2 | ||
opencv-python==4.10.0.84 | ||
pillow==11.0.0 | ||
pycparser==2.22 | ||
PyJWT==2.9.0 | ||
python-dotenv==1.0.1 | ||
requests==2.32.3 | ||
sqlparse==0.5.1 | ||
urllib3==2.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,71 @@ | ||
{% load static %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<title>Graph Analyzer</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="{% static 'css/graph_analyzer_styles.css' %}"> | ||
</head> | ||
<body> | ||
<form method="post" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input type="submit" value="Submit"> | ||
</form> | ||
<h2>Graph Analysis Results</h2> | ||
<p>Minima: {{ minima }}</p> | ||
<p>Maxima: {{ maxima }}</p> | ||
<header> | ||
<div class="container"> | ||
<h1>Graph Analyzer</h1> | ||
</div> | ||
</header> | ||
|
||
<main class="container"> | ||
<section class="form-section"> | ||
<form method="post" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
<div class="file-input-wrapper"> | ||
<label for="{{ form.image.id_for_label }}">Choose an image file:</label> | ||
<span class="btn">Select File</span> | ||
{{ form.image }} | ||
<span class="file-name">No file chosen</span> | ||
</div> | ||
<button type="submit" class="submit-btn">Upload and Analyze</button> | ||
</form> | ||
</section> | ||
|
||
{% if minima is not None and maxima is not None %} | ||
<section class="results"> | ||
<h2>Graph Analysis Results</h2> | ||
<div class="result-detail"> | ||
<p><span class="result-label">Minima:</span> {{ minima }}</p> | ||
<p><span class="result-label">Maxima:</span> {{ maxima }}</p> | ||
</div> | ||
</section> | ||
{% endif %} | ||
|
||
{% if predicted_points %} | ||
<section class="results"> | ||
<h2>Predicted Next 5 Points</h2> | ||
<ul class="predicted-points"> | ||
{% for point in predicted_points %} | ||
<li> | ||
<span class="result-label">Point {{ forloop.counter }}:</span> | ||
<span>X: {{ point.0 }},</span> | ||
<span>Y: {{ point.1|floatformat:2 }}</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
{% endif %} | ||
</main> | ||
|
||
<footer> | ||
<div class="container"> | ||
<p>© 2024 Graph Analyzer. All rights reserved.</p> | ||
</div> | ||
</footer> | ||
|
||
<script> | ||
document.querySelector('input[type="file"]').addEventListener('change', function(e) { | ||
var fileName = e.target.files[0].name; | ||
document.querySelector('.file-name').textContent = fileName; | ||
}); | ||
</script> | ||
</body> | ||
</html> |