satendra4u2022 commited on
Commit
ab3b5dc
1 Parent(s): 4d6a5b5

Update query_data.py

Browse files
Files changed (1) hide show
  1. query_data.py +1 -3
query_data.py CHANGED
@@ -3,8 +3,6 @@ from langchain.embeddings import OpenAIEmbeddings
3
  from llamaapi import LlamaAPI
4
  from langchain.prompts import ChatPromptTemplate
5
  import os
6
- import nest_asyncio
7
-
8
 
9
  # Constants
10
  CHROMA_PATH = "chroma"
@@ -21,7 +19,7 @@ Answer the question based on the above context: {question}
21
  def generate_reworded_question(prompt):
22
 
23
  try:
24
- nest_asyncio.apply()
25
  llama = LlamaAPI('LL-0tVJ5OwMLdglnL5Okd94ScFHyT6FMPP33oClu8i5cXWPScRswldmqXI7VH1JaT3x')
26
 
27
  # API Request
 
3
  from llamaapi import LlamaAPI
4
  from langchain.prompts import ChatPromptTemplate
5
  import os
 
 
6
 
7
  # Constants
8
  CHROMA_PATH = "chroma"
 
19
  def generate_reworded_question(prompt):
20
 
21
  try:
22
+
23
  llama = LlamaAPI('LL-0tVJ5OwMLdglnL5Okd94ScFHyT6FMPP33oClu8i5cXWPScRswldmqXI7VH1JaT3x')
24
 
25
  # API Request