enabled CORS
Browse files
app.py
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
#ESTABLISH THE SERVER
|
2 |
from flask import Flask,request
|
|
|
|
|
|
|
3 |
from dotenv import load_dotenv
|
4 |
|
5 |
# Initializing flask app
|
6 |
app = Flask(__name__)
|
|
|
7 |
load_dotenv()
|
8 |
|
|
|
9 |
@app.route("/", methods=['GET','POST'])
|
10 |
def index():
|
11 |
from agent._create import agent_executor
|
|
|
1 |
#ESTABLISH THE SERVER
|
2 |
from flask import Flask,request
|
3 |
+
from flask_cors import CORS
|
4 |
+
|
5 |
+
|
6 |
from dotenv import load_dotenv
|
7 |
|
8 |
# Initializing flask app
|
9 |
app = Flask(__name__)
|
10 |
+
CORS(app)
|
11 |
load_dotenv()
|
12 |
|
13 |
+
|
14 |
@app.route("/", methods=['GET','POST'])
|
15 |
def index():
|
16 |
from agent._create import agent_executor
|