SVashishta1 commited on
Commit
b860312
·
1 Parent(s): ae44c1e

Fix: Update Groq import and add langchain-groq dependency

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +2 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import tempfile
6
  import pandas as pd
7
  import sqlite3
8
  from langchain_core.prompts import ChatPromptTemplate
9
- from langchain_community.llms import Groq
10
  import plotly.express as px
11
  import time
12
  import plotly.io as pio
@@ -31,7 +31,7 @@ from backend.main import DocumentAssistant
31
  document_assistant = DocumentAssistant()
32
 
33
  # Initialize the LLM using the llama3-8b-8192 model from Groq
34
- llm = Groq(
35
  model="llama3-8b-8192",
36
  temperature=0,
37
  max_tokens=None,
 
6
  import pandas as pd
7
  import sqlite3
8
  from langchain_core.prompts import ChatPromptTemplate
9
+ from langchain_groq import ChatGroq
10
  import plotly.express as px
11
  import time
12
  import plotly.io as pio
 
31
  document_assistant = DocumentAssistant()
32
 
33
  # Initialize the LLM using the llama3-8b-8192 model from Groq
34
+ llm = ChatGroq(
35
  model="llama3-8b-8192",
36
  temperature=0,
37
  max_tokens=None,
requirements.txt CHANGED
@@ -10,4 +10,5 @@ gradio>=4.19.0
10
  python-dotenv>=1.0.0
11
  plotly>=5.14.0
12
  kaleido>=0.2.1
13
- numpy>=1.24.0
 
 
10
  python-dotenv>=1.0.0
11
  plotly>=5.14.0
12
  kaleido>=0.2.1
13
+ numpy>=1.24.0
14
+ langchain-groq>=0.1.0