Skip to content

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Smart_Web

Python
Flask
License OpenAI

Typing SVG

Smart_Web is a lightweight AI-powered task analysis platform built with Flask.
It leverages the DeepSeek model and OpenAI API to help users evaluate and gain insights into structured tasks.


📖 Project Overview

University life today is much more than just studying. Balancing internships, exams, research projects, competitions, clubs, hobbies, and travel brings both freedom and pressure. When tasks accumulate, confusion and overwhelm often follow.

To address this, our team developed a scalable task management system as part of a database project. Featuring AI-powered analysis, cloud-hosted database, and email reminders, it’s already proven effective in managing class notifications more smoothly than chaotic chat groups.

In this AI-driven age, embracing and mastering AI tools is key to unlocking our potential and navigating the future with confidence.

✨ Features

  • 🧠 Analyze tasks using DeepSeek (1.5b) or OpenAI models
  • 🔐 User authentication & task management
  • 📊 Visualized result outputs
  • 💌 Email support (Flask-Mail integration)
  • 🌐 Lightweight local web interface

📚 Table of Contents

📦 Configuration

Component Version
Python 3.12
deepseek-r1 1.5b
Flask 3.1.0
Flask-SQLAlchemy 3.1.1
Flask-Mail 0.10.0
OpenAI 1.64.0

⚙️ Installation

Method 1: Using requirements.txt

pip install -r requirements.txt

Method 2: Install dependencies individually

pip install Flask
pip install Flask-SQLAlchemy
pip install Flask-Mail
pip install openai
pip install python-dotenv
pip install psycopg2
pip install requests

▶️ Running the Code

Start the local server:

python app.py

Open your browser and visit: http://127.0.0.1:5000

🚀 Deployment

For production use, consider:

  • Using a WSGI server such as Gunicorn:

    gunicorn app:app
  • Securing environment variables (SECRET_KEY, MAIL_PASSWORD, etc.)

  • Deploying with services like Render, Railway, Fly.io, or using Docker

🐞 Troubleshooting

PostgreSQL GSSAPI Error

sqlalchemy.exc.OperationalError: received invalid response to GSSAPI negotiation

Fix: disable GSSAPI encryption in your database URI

app.config['SQLALCHEMY_DATABASE_URI'] = (
    "postgresql://<username>:<password>@<host>:5432/<dbname>?gssencmode=disable"
)

iFlytek SSL API Error

SSLError: EOF occurred in violation of protocol (_ssl.c:1010)

Try disabling VPN or switching to a stable network.

Generic PostgreSQL Connection Issue

Test network connectivity via PowerShell:

Test-NetConnection -ComputerName aws-0-ap-southeast-1.pooler.supabase.com -Port 5432

Make sure:

  • Network access is allowed
  • Password contains ASCII characters only
  • VPNs or proxies are disabled if needed

🖼️ Demonstration

Demo1 Demo2 Demo3 Demo4

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Add feature')
  4. Push to the branch (git push origin feature-name)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License.


🙏 Acknowledgments

Special thanks to my teammates for their collaboration and support:

  • Yue Guo
  • Bo Yang

Without your effort, this project would not have been possible! 💪

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages