Spaces:
Sleeping
Sleeping
bradartigue
commited on
Commit
•
afcf8f1
1
Parent(s):
833881e
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import os
|
2 |
import time
|
3 |
import requests
|
4 |
-
from dotenv import load_dotenv
|
5 |
from flask import Flask, request, jsonify
|
6 |
from flask_cors import CORS
|
7 |
|
@@ -13,8 +12,6 @@ from langchain.cache import InMemoryCache
|
|
13 |
from langchain.prompts import PromptTemplate
|
14 |
from langchain.chains import LLMChain
|
15 |
|
16 |
-
load_dotenv()
|
17 |
-
|
18 |
# Set environment variables and OpenAI configurations
|
19 |
api_keys = os.environ
|
20 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
|
1 |
import os
|
2 |
import time
|
3 |
import requests
|
|
|
4 |
from flask import Flask, request, jsonify
|
5 |
from flask_cors import CORS
|
6 |
|
|
|
12 |
from langchain.prompts import PromptTemplate
|
13 |
from langchain.chains import LLMChain
|
14 |
|
|
|
|
|
15 |
# Set environment variables and OpenAI configurations
|
16 |
api_keys = os.environ
|
17 |
openai.api_key = os.environ['OPENAI_API_KEY']
|