johnnygreco commited on
Commit
77cb5fb
β€’
1 Parent(s): d16f4d9
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,15 +1,14 @@
1
  import os
2
 
3
  import gradio as gr
 
4
  from langchain.chains import RetrievalQA
5
  from langchain_core.vectorstores import VectorStoreRetriever
6
  from langchain_openai import OpenAI
7
  from openai import OpenAI as OpenAIClient
8
 
9
- import hpqa
10
-
11
  os.environ["OPENAI_API_KEY"] = ""
12
- index_path = hpqa.LOCAL_DATA_PATH / "hpqa_faiss_index_500"
13
 
14
 
15
  examples = [
 
1
  import os
2
 
3
  import gradio as gr
4
+ import hpqa
5
  from langchain.chains import RetrievalQA
6
  from langchain_core.vectorstores import VectorStoreRetriever
7
  from langchain_openai import OpenAI
8
  from openai import OpenAI as OpenAIClient
9
 
 
 
10
  os.environ["OPENAI_API_KEY"] = ""
11
+ index_path = "data/hpqa_faiss_index_500"
12
 
13
 
14
  examples = [