Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
from fastapi import FastAPI, HTTPException
|
|
|
|
|
|
|
2 |
from langchain.prompts import PromptTemplate import os
|
3 |
# Initialize FastAPI app
|
4 |
app = FastAPI()
|
|
|
1 |
+
from fastapi import FastAPI, HTTPException
|
2 |
+
from pydantic import BaseModel
|
3 |
+
from langchain_groq import ChatGroq
|
4 |
+
from langchain.chains import LLMChain
|
5 |
from langchain.prompts import PromptTemplate import os
|
6 |
# Initialize FastAPI app
|
7 |
app = FastAPI()
|