Spaces:
Sleeping
Sleeping
Commit
·
fddbc1a
1
Parent(s):
d6cf0f0
asdf
Browse files- .gitignore +1 -1
- app.py +0 -7
.gitignore
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
.env
|
2 |
__pycache__/
|
3 |
-
*.pyc
|
|
|
1 |
.env
|
2 |
__pycache__/
|
3 |
+
*.pyc
|
app.py
CHANGED
@@ -3,15 +3,8 @@ from pydantic import BaseModel
|
|
3 |
from langchain_groq import ChatGroq
|
4 |
from langchain.chains import LLMChain
|
5 |
from langchain.prompts import PromptTemplate
|
6 |
-
from dotenv import load_dotenv
|
7 |
import os
|
8 |
|
9 |
-
# Load environment variables from .env file if it exists
|
10 |
-
try:
|
11 |
-
load_dotenv()
|
12 |
-
except:
|
13 |
-
pass # If .env doesn't exist (like in Vercel), continue without it
|
14 |
-
|
15 |
# Initialize FastAPI app
|
16 |
app = FastAPI()
|
17 |
|
|
|
3 |
from langchain_groq import ChatGroq
|
4 |
from langchain.chains import LLMChain
|
5 |
from langchain.prompts import PromptTemplate
|
|
|
6 |
import os
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Initialize FastAPI app
|
9 |
app = FastAPI()
|
10 |
|