Spaces:
Running
Running
johnnygreco
commited on
Commit
β’
77cb5fb
1
Parent(s):
d16f4d9
data path
Browse files
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 =
|
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 = [
|