markpeace commited on
Commit
e93c888
1 Parent(s): 683f6dd
Files changed (4) hide show
  1. .gitignore +1 -0
  2. __pycache__/app.cpython-39.pyc +0 -0
  3. app.py +4 -1
  4. requirements.txt +1 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .env
__pycache__/app.cpython-39.pyc CHANGED
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
 
app.py CHANGED
@@ -1,10 +1,13 @@
1
  #import json
2
 
3
  from flask import Flask,request
 
 
 
4
 
5
  # Initializing flask app
6
  app = Flask(__name__)
7
-
8
 
9
  @app.route('/', methods=['GET','POST'])
10
  def index():
 
1
  #import json
2
 
3
  from flask import Flask,request
4
+ from dotenv import load_dotenv
5
+
6
+ from langchain_openai import ChatOpenAI
7
 
8
  # Initializing flask app
9
  app = Flask(__name__)
10
+ load_dotenv()
11
 
12
  @app.route('/', methods=['GET','POST'])
13
  def index():
requirements.txt CHANGED
@@ -2,6 +2,7 @@
2
  Flask
3
  Flask-cors
4
  gunicorn
 
5
 
6
  #LLM
7
  langchain
 
2
  Flask
3
  Flask-cors
4
  gunicorn
5
+ python-dotenv
6
 
7
  #LLM
8
  langchain