Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ from langchain_groq import ChatGroq
|
|
12 |
from dotenv import load_dotenv
|
13 |
from langchain.schema import Document
|
14 |
from langchain.vectorstores import FAISS
|
|
|
15 |
|
16 |
|
17 |
load_dotenv() # Load environment variables from .env file
|
@@ -25,7 +26,8 @@ process_url_clicked = st.sidebar.button("Process URLs")
|
|
25 |
file_path = "faiss_store_openai.pkl"
|
26 |
|
27 |
main_placeholder = st.empty()
|
28 |
-
llm =
|
|
|
29 |
|
30 |
def fetch_web_content(url):
|
31 |
"""Fetches text content from a given URL using BeautifulSoup."""
|
|
|
12 |
from dotenv import load_dotenv
|
13 |
from langchain.schema import Document
|
14 |
from langchain.vectorstores import FAISS
|
15 |
+
from langchain_openai import OpenAI
|
16 |
|
17 |
|
18 |
load_dotenv() # Load environment variables from .env file
|
|
|
26 |
file_path = "faiss_store_openai.pkl"
|
27 |
|
28 |
main_placeholder = st.empty()
|
29 |
+
llm = OpenAI(model_name="gpt-4o", temperature=0.9, max_tokens=500)
|
30 |
+
#llm = ChatGroq(model_name="llama-3.3-70b-versatile", temperature=0.9, max_tokens=500)
|
31 |
|
32 |
def fetch_web_content(url):
|
33 |
"""Fetches text content from a given URL using BeautifulSoup."""
|