Closed mesax1 closed 1 year ago
This update introduces enhancements to both the backend and frontend of the application. The backend now calculates and displays token usage, while the frontend has been improved with a loading animation, better color contrast for text, and more efficient handling of POST requests and graph rendering.
File | Summary |
---|---|
main.py |
Added functionality to calculate and display total tokens used. |
templates/index.html |
Enhanced form submission handling, added loading animation, improved text color contrast, optimized POST request handling, and refined graph rendering. |
🐇 "In the land of code, where logic is king,
Changes are made, improvements they bring.
Tokens counted, animations spin,
With each pull request, we all win! 🎉"
Summary by CodeRabbit
Release Notes for Pull Request:
main.py
.templates/index.html
by introducing a loading animation during form submission.postData
function intemplates/index.html
for better handling of POST requests with JSON data.createGraph
function intemplates/index.html
for initializing and rendering a graph using Cytoscape.templates/index.html
by adding a function to determine text color based on background color.fetchGraphHistory
function intemplates/index.html
to fetch and display graph history.