Spaces:
Sleeping
Sleeping
Update QnA.py
Browse files
QnA.py
CHANGED
@@ -66,7 +66,7 @@ def Q_A(vectorstore,question,API_KEY):
|
|
66 |
if API_KEY.startswith('gsk'):
|
67 |
os.environ["GROQ_API_KEY"] = API_KEY
|
68 |
chat_llm = ChatGroq(model="llama3-8b-8192")
|
69 |
-
elif
|
70 |
chat_llm = get_hugging_face_model(API_key=API_KEY)
|
71 |
|
72 |
# Create a retriever
|
|
|
66 |
if API_KEY.startswith('gsk'):
|
67 |
os.environ["GROQ_API_KEY"] = API_KEY
|
68 |
chat_llm = ChatGroq(model="llama3-8b-8192")
|
69 |
+
elif API_KEY.startswith('hf'):
|
70 |
chat_llm = get_hugging_face_model(API_key=API_KEY)
|
71 |
|
72 |
# Create a retriever
|