Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -4,12 +4,14 @@ import random
|
|
| 4 |
|
| 5 |
from flask import Flask, request, jsonify, redirect, url_for
|
| 6 |
from flask_cors import CORS
|
| 7 |
-
from sqlalchemy import create_engine
|
|
|
|
|
|
|
| 8 |
from sqlalchemy.ext.declarative import declarative_base
|
|
|
|
| 9 |
from sqlalchemy.orm import sessionmaker, relationship
|
| 10 |
|
| 11 |
-
|
| 12 |
-
client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.1") # Free model
|
| 13 |
|
| 14 |
connection_string = "postgresql://neondb_owner:Pl8cWUu0iLHn@ep-tiny-haze-a1w7wrrg.ap-southeast-1.aws.neon.tech/neondb?sslmode=require"
|
| 15 |
|
|
|
|
| 4 |
|
| 5 |
from flask import Flask, request, jsonify, redirect, url_for
|
| 6 |
from flask_cors import CORS
|
| 7 |
+
from sqlalchemy import create_engine
|
| 8 |
+
from sqlalchemy.orm import sessionmaker
|
| 9 |
+
from sqlalchemy import create_engine, Column, Integer, String, Boolean, ForeignKey
|
| 10 |
from sqlalchemy.ext.declarative import declarative_base
|
| 11 |
+
from sqlalchemy import LargeBinary
|
| 12 |
from sqlalchemy.orm import sessionmaker, relationship
|
| 13 |
|
| 14 |
+
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
|
|
|
| 15 |
|
| 16 |
connection_string = "postgresql://neondb_owner:Pl8cWUu0iLHn@ep-tiny-haze-a1w7wrrg.ap-southeast-1.aws.neon.tech/neondb?sslmode=require"
|
| 17 |
|