Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -3,6 +3,7 @@ from huggingface_hub import InferenceClient
|
|
3 |
import random
|
4 |
|
5 |
from flask import Flask, request, jsonify, redirect, url_for
|
|
|
6 |
from flask_jwt_extended import JWTManager, create_access_token
|
7 |
from flask_jwt_extended import jwt_required, get_jwt_identity
|
8 |
from flask_dance.contrib.google import make_google_blueprint, google
|
@@ -12,6 +13,7 @@ import sqlite3
|
|
12 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
|
13 |
|
14 |
app = Flask(__name__)
|
|
|
15 |
|
16 |
file_path = "mentor.txt"
|
17 |
with open(file_path, "r") as file:
|
|
|
3 |
import random
|
4 |
|
5 |
from flask import Flask, request, jsonify, redirect, url_for
|
6 |
+
from flask_cors import CORS
|
7 |
from flask_jwt_extended import JWTManager, create_access_token
|
8 |
from flask_jwt_extended import jwt_required, get_jwt_identity
|
9 |
from flask_dance.contrib.google import make_google_blueprint, google
|
|
|
13 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
|
14 |
|
15 |
app = Flask(__name__)
|
16 |
+
CORS(app)
|
17 |
|
18 |
file_path = "mentor.txt"
|
19 |
with open(file_path, "r") as file:
|