Spaces:
Runtime error
Runtime error
Initial commit for OJOS AI: Multiclass model integration, Keras 3 compatibility patch, and glassmorphism styling
1d4eab2 | import sqlite3 | |
| def get_db_connection(): | |
| conn = sqlite3.connect("users.db") | |
| conn.row_factory = sqlite3.Row | |
| return conn | |
| def create_users_table(): | |
| conn = get_db_connection() | |
| conn.execute(""" | |
| CREATE TABLE IF NOT EXISTS users ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| name TEXT NOT NULL, | |
| email TEXT UNIQUE NOT NULL, | |
| password TEXT NOT NULL | |
| ) | |
| """) | |
| conn.commit() | |
| conn.close() | |
| # Table auto create karne ke liye | |
| if __name__ == "__main__": | |
| create_users_table() | |