holyhigh666 commited on
Commit
6bcc485
·
verified ·
1 Parent(s): 5b68ef2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,11 +11,13 @@ from langchain_core.output_parsers import StrOutputParser
11
  from langchain_core.runnables import RunnablePassthrough
12
  import glob
13
  import gradio as gr
14
-
15
  from langchain_community.embeddings import HuggingFaceInferenceAPIEmbeddings
16
 
17
  import os
18
 
 
 
19
  secret_value_hf = os.getenv("hf_token")
20
 
21
  hf_embeddings = HuggingFaceInferenceAPIEmbeddings(
 
11
  from langchain_core.runnables import RunnablePassthrough
12
  import glob
13
  import gradio as gr
14
+ from langchain_huggingface import HuggingFaceEndpoint
15
  from langchain_community.embeddings import HuggingFaceInferenceAPIEmbeddings
16
 
17
  import os
18
 
19
+ # I learned a lot from https://huggingface.co/learn/cookbook/en/rag_zephyr_langchain. If you want to learn RAG, check it out.
20
+
21
  secret_value_hf = os.getenv("hf_token")
22
 
23
  hf_embeddings = HuggingFaceInferenceAPIEmbeddings(