markpeace commited on
Commit
bbe9d13
1 Parent(s): 257931c

enabled CORS

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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